Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.web.tests.add_forge_now.test_models::Tests / Python tests / test_allowed_next_statuses[RequestStatus.FEEDBACK_TO_HANDLE-allowed_next_statuses2]
Failed

TEST RESULT

Run At
Aug 17 2022, 3:12 PM
Details
current_status = <RequestStatus.FEEDBACK_TO_HANDLE: 'Feedback to handle'> allowed_next_statuses = [<RequestStatus.UNSUCCESSFUL: 'Unsuccessful'>, <RequestStatus.WAITING_FOR_FEEDBACK: 'Waiting for feedback'>, <RequestStatus.ACCEPTED: 'Accepted'>, <RequestStatus.REJECTED: 'Rejected'>, <RequestStatus.SUSPENDED: 'Suspended'>] @pytest.mark.parametrize( "current_status, allowed_next_statuses", [ ( RequestStatus.PENDING, [ RequestStatus.WAITING_FOR_FEEDBACK, RequestStatus.REJECTED, RequestStatus.SUSPENDED, ], ), (RequestStatus.WAITING_FOR_FEEDBACK, [RequestStatus.FEEDBACK_TO_HANDLE]), ( RequestStatus.FEEDBACK_TO_HANDLE, [ RequestStatus.UNSUCCESSFUL, RequestStatus.WAITING_FOR_FEEDBACK, RequestStatus.ACCEPTED, RequestStatus.REJECTED, RequestStatus.SUSPENDED, ], ), ], ) def test_allowed_next_statuses(current_status, allowed_next_statuses): > assert current_status.allowed_next_statuses() == allowed_next_statuses E AssertionError: assert [<RequestStat...nsuccessful'>] == [<RequestStat... 'Suspended'>] E At index 0 diff: <RequestStatus.WAITING_FOR_FEEDBACK: 'Waiting for feedback'> != <RequestStatus.UNSUCCESSFUL: 'Unsuccessful'> E Full diff: E [ E - <RequestStatus.UNSUCCESSFUL: 'Unsuccessful'>, E <RequestStatus.WAITING_FOR_FEEDBACK: 'Waiting for feedback'>, E <RequestStatus.ACCEPTED: 'Accepted'>, E <RequestStatus.REJECTED: 'Rejected'>,... E E ...Full output truncated (4 lines hidden), use '-vv' to show .tox/py3/lib/python3.7/site-packages/swh/web/tests/add_forge_now/test_models.py:36: AssertionError