___________________________________________________________________________________________________________ test_multisteps_deposit ___________________________________________________________________________________________________________ sample_archive = {'data': b'PK\x03\x04\x14\x00\x00\x00\x00\x00\xf7HIQ\xcba\xb4c\x14\x00\x00\x00\x14\x00\x00\x00\x05\x00\x00\x00file1som...ony/pytest-104/test_multisteps_deposit0/tmpvxxda9zn', 'length': 128, 'md5sum': 'ddf8210e26805643f7f3511a878929a5', ...} datadir = '/home/tony/work/inria/repo/swh/swh-environment/swh-deposit/swh/deposit/tests/cli/../data', slug = 'f0529536-a65a-49ec-9936-bc3b8463bc1b', requests_mock_datadir_visits = def test_multisteps_deposit( sample_archive, datadir, slug, requests_mock_datadir_visits ): """ First deposit a partial deposit (no metadata, only archive), then update the metadata part. https://docs.softwareheritage.org/devel/swh-deposit/getting-started.html#multisteps-deposit """ # noqa api_url = "https://deposit.test.metadata/1" runner = CliRunner() result = runner.invoke( cli, [ "upload", "--url", api_url, "--username", TEST_USER["username"], "--password", TEST_USER["password"], "--archive", sample_archive["path"], "--partial", "--slug", slug, > "--format", "json" ], ) E AssertionError: unexpected output: E >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> PDB set_trace >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> E [43] > /home/tony/work/inria/repo/swh/swh-environment/swh-deposit/swh/deposit/client.py(277)do_execute() E -> def execute(self, *args, **kwargs) -> Dict[str, Any]: E 5 frames hidden (try 'help hidden_frames') E (Pdb++) E E assert 1 == 0 E + where 1 = .exit_code tests/cli/test_client.py:411: AssertionError -------------------------------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------------------------------- ERROR swh.deposit.cli.client:client.py:441 Problem during parsing options: Service document retrieval: Service document failure at /servicedocument/: =========================================================================================================== short test summary info =========================================================================================================== FAILED tests/cli/test_client.py::test_multisteps_deposit - AssertionError: unexpected output: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ====================================================================================================== 1 failed, 150 deselected in 1.62s ======================================================================================================