def test_code_exception_cook():
cooker = BaseVaultCookerMock()
cooker.prepare_bundle = MagicMock()
cooker.prepare_bundle.side_effect = RuntimeError("Nope")
cooker.cook()
# Potentially remove this when we have objstorage streaming
cooker.backend.put_bundle.assert_not_called()
cooker.backend.set_status.assert_called_with(TEST_BUNDLE_TYPE, TEST_SWHID, "failed")
> assert "Nope" not in cooker.backend.set_progress.call_args[0][2]
E assert 'Nope' not in 'Internal Se...rror: Nope\n'
E 'Nope' is contained here:
E Internal Server Error. This incident will be reported.
E The full error was:
E
E Traceback (most recent call last):
E File "/var/lib/jenkins/workspace/DVAU/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/vault/cookers/base.py", line 131, in cook
E self.prepare_bundle()...
E
E ...Full output truncated (7 lines hidden), use '-vv' to show
.tox/py3/lib/python3.7/site-packages/swh/vault/tests/test_cookers_base.py:59: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Sep 14 2021, 5:59 PM