Guest User

discovey pytest error

a guest
May 18th, 2020
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 8.29 KB | None | 0 0
  1. root@e694e1077f9a:/openedx/discovery# pytest course_discovery/apps/api/v1/tests/test_views/test_course_runs.py --ds=course_discovery.settings.test_local
  2. ================================================================ test session starts ================================================================
  3. platform linux -- Python 3.5.2, pytest-3.1.0, py-1.8.1, pluggy-0.4.0
  4. Django settings: course_discovery.settings.test_local (from command line option)
  5. rootdir: /openedx/discovery, inifile: pytest.ini
  6. plugins: xdist-1.22.5, responses-0.3.0, forked-1.1.3, django-3.1.3.dev47+gde31fab, django-ordering-1.0.1, cov-2.5.1, Faker-4.1.0
  7. gw0 [21] / gw1 [21]
  8. scheduling tests via LoadScopeScheduling
  9. INTERNALERROR> Traceback (most recent call last):
  10. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/_pytest/main.py", line 105, in wrap_session
  11. INTERNALERROR>     session.exitstatus = doit(config, session) or 0
  12. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/_pytest/main.py", line 141, in _main
  13. INTERNALERROR>     config.hook.pytest_runtestloop(session=session)
  14. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 745, in __call__
  15. INTERNALERROR>     return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
  16. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 339, in _hookexec
  17. INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
  18. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 334, in <lambda>
  19. INTERNALERROR>     _MultiCall(methods, kwargs, hook.spec_opts).execute()
  20. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 613, in execute
  21. INTERNALERROR>     return _wrapped_call(hook_impl.function(*args), self.execute)
  22. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 254, in _wrapped_call
  23. INTERNALERROR>     return call_outcome.get_result()
  24. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 279, in get_result
  25. INTERNALERROR>     raise ex[1].with_traceback(ex[2])
  26. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 265, in __init__
  27. INTERNALERROR>     self.result = func()
  28. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 614, in execute
  29. INTERNALERROR>     res = hook_impl.function(*args)
  30. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/xdist/remote.py", line 65, in pytest_runtestloop
  31. INTERNALERROR>     self.run_one_test(torun)
  32. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/xdist/remote.py", line 82, in run_one_test
  33. INTERNALERROR>     self.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
  34. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 745, in __call__
  35. INTERNALERROR>     return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
  36. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 339, in _hookexec
  37. INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
  38. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 334, in <lambda>
  39. INTERNALERROR>     _MultiCall(methods, kwargs, hook.spec_opts).execute()
  40. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 613, in execute
  41. INTERNALERROR>     return _wrapped_call(hook_impl.function(*args), self.execute)
  42. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 254, in _wrapped_call
  43. INTERNALERROR>     return call_outcome.get_result()
  44. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 279, in get_result
  45. INTERNALERROR>     raise ex[1].with_traceback(ex[2])
  46. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 265, in __init__
  47. INTERNALERROR>     self.result = func()
  48. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 613, in execute
  49. INTERNALERROR>     return _wrapped_call(hook_impl.function(*args), self.execute)
  50. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 254, in _wrapped_call
  51. INTERNALERROR>     return call_outcome.get_result()
  52. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 279, in get_result
  53. INTERNALERROR>     raise ex[1].with_traceback(ex[2])
  54. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 265, in __init__
  55. INTERNALERROR>     self.result = func()
  56. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 614, in execute
  57. INTERNALERROR>     res = hook_impl.function(*args)
  58. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/pytest_forked/__init__.py", line 41, in pytest_runtest_protocol
  59. INTERNALERROR>     if item.config.getvalue("forked") or item.get_closest_marker("forked"):
  60. INTERNALERROR> AttributeError: 'TestCaseFunction' object has no attribute 'get_closest_marker'
  61. INTERNALERROR> Traceback (most recent call last):
  62. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/_pytest/main.py", line 105, in wrap_session
  63. INTERNALERROR>     session.exitstatus = doit(config, session) or 0
  64. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/_pytest/main.py", line 141, in _main
  65. INTERNALERROR>     config.hook.pytest_runtestloop(session=session)
  66. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 745, in __call__
  67. INTERNALERROR>     return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
  68. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 339, in _hookexec
  69. INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
  70. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 334, in <lambda>
  71. INTERNALERROR>     _MultiCall(methods, kwargs, hook.spec_opts).execute()
  72. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 613, in execute
  73. INTERNALERROR>     return _wrapped_call(hook_impl.function(*args), self.execute)
  74. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 254, in _wrapped_call
  75. INTERNALERROR>     return call_outcome.get_result()
  76. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 279, in get_result
  77. INTERNALERROR>     raise ex[1].with_traceback(ex[2])
  78. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 265, in __init__
  79. INTERNALERROR>     self.result = func()
  80. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 614, in execute
  81. INTERNALERROR>     res = hook_impl.function(*args)
  82. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/xdist/dsession.py", line 115, in pytest_runtestloop
  83. INTERNALERROR>     self.loop_once()
  84. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/xdist/dsession.py", line 138, in loop_once
  85. INTERNALERROR>     call(**kwargs)
  86. INTERNALERROR>   File "/openedx/venv/lib/python3.5/site-packages/xdist/dsession.py", line 180, in worker_workerfinished
  87. INTERNALERROR>     assert not crashitem, (crashitem, node)
  88. INTERNALERROR> AssertionError: ('course_discovery/apps/api/v1/tests/test_views/test_course_runs.py::CourseRunViewSetTests::test_contains_missing_parameter_1', <WorkerController gw1>)
  89. INTERNALERROR> assert not 'course_discovery/apps/api/v1/tests/test_views/test_course_runs.py::CourseRunViewSetTests::test_contains_missing_parameter_1'
  90.  
  91. =========================================================== no tests ran in 5.88 seconds ============================================================
Add Comment
Please, Sign In to add comment