api_client = <rest_framework.test.APIClient object at 0x7fdb34559860>
subtest = <function subtest.<locals>.inner at 0x7fdb348e48c8>
@given(new_origin(), visit_dates(2), new_snapshots(1))
> def test_api_lookup_origin_visit_latest(
api_client, subtest, new_origin, visit_dates, new_snapshots
):
.tox/py3/lib/python3.7/site-packages/swh/web/tests/api/views/test_origin.py:227:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.7/site-packages/swh/web/tests/api/views/test_origin.py:232: in test_api_lookup_origin_visit_latest
@subtest
.tox/py3/lib/python3.7/site-packages/swh/web/tests/conftest.py:1108: in inner
item.ihook.pytest_runtest_teardown(item=item, nextitem=nextitem)
.tox/py3/lib/python3.7/site-packages/pluggy/_hooks.py:265: in __call__
return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
.tox/py3/lib/python3.7/site-packages/pluggy/_manager.py:80: in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
.tox/py3/lib/python3.7/site-packages/_pytest/runner.py:175: in pytest_runtest_teardown
item.session._setupstate.teardown_exact(item, nextitem)
.tox/py3/lib/python3.7/site-packages/_pytest/runner.py:419: in teardown_exact
self._teardown_towards(needed_collectors)
.tox/py3/lib/python3.7/site-packages/_pytest/runner.py:434: in _teardown_towards
raise exc
.tox/py3/lib/python3.7/site-packages/_pytest/runner.py:427: in _teardown_towards
self._pop_and_teardown()
.tox/py3/lib/python3.7/site-packages/_pytest/runner.py:387: in _pop_and_teardown
self._teardown_with_finalization(colitem)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.runner.SetupState object at 0x7fdb593ae9e8>
colitem = <Function test_api_lookup_origin_visits_by_id[]>
def _teardown_with_finalization(self, colitem) -> None:
self._callfinalizers(colitem)
colitem.teardown()
for colitem in self._finalizers:
> assert colitem in self.stack
E AssertionError
.tox/py3/lib/python3.7/site-packages/_pytest/runner.py:408: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Apr 4 2022, 5:29 PM