Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.scheduler.tests.test_recurrent_visits::test_recurrent_visit_additional_parameters[hg-tablesamples0]
Failed

TEST RESULT

Run At
Jan 5 2022, 9:24 AM
Details
swh_scheduler = <swh.scheduler.backend.SchedulerBackend object at 0x7f3da8324438> mocker = <pytest_mock.plugin.MockerFixture object at 0x7f3da8324550> visit_type = 'hg', tablesamples = {} @pytest.mark.parametrize( "visit_type, tablesamples", [("hg", {}), ("git", _GIT_TABLESAMPLE_VALUES)] ) def test_recurrent_visit_additional_parameters( swh_scheduler, mocker, visit_type, tablesamples ): """Testing additional policy parameters""" mock_grab_next_visits = mocker.patch.object(swh_scheduler, "grab_next_visits") mock_grab_next_visits.return_value = [] grab_next_visits_policy_weights(swh_scheduler, visit_type, 10) for call in mock_grab_next_visits.call_args_list: > assert call.kwargs.get("tablesample") == tablesamples.get(call.kwargs["policy"]) E TypeError: tuple indices must be integers or slices, not str .tox/py3/lib/python3.7/site-packages/swh/scheduler/tests/test_recurrent_visits.py:151: TypeError