Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.deposit.tests.cli.test_client::test_cli_multisteps_deposit
Failed

TEST RESULT

Run At
Feb 23 2022, 7:11 PM
Details
sample_archive = {'data': b'PK\x03\x04\x14\x00\x00\x00\x00\x00i\x91WT\xcba\xb4c\x14\x00\x00\x00\x14\x00\x00\x00\x05\x00\x00\x00file1som...s/pytest-0/test_cli_multisteps_deposit0/tmprbon1bep', 'length': 128, 'md5sum': 'ce41f802fc8a76610f102064ea8da2ef', ...} datadir = '/var/lib/jenkins/workspace/DDEP/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/deposit/tests/cli/../data' slug = 'a82c1586-f085-4545-ab47-bbeb0574a5f1' requests_mock_datadir = <requests_mock.mocker.Mocker object at 0x7f1be039b940> cli_runner = <click.testing.CliRunner object at 0x7f1be039b828> def test_cli_multisteps_deposit( sample_archive, datadir, slug, requests_mock_datadir, cli_runner ): """ 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" deposit_id = 666 # Create a partial deposit with only 1 archive # fmt: off result = cli_runner.invoke( cli, [ "upload", "--url", api_url, "--username", TEST_USER["username"], "--password", TEST_USER["password"], "--archive", sample_archive["path"], "--slug", slug, "--format", "json", "--partial", ], ) # fmt: on > assert result.exit_code == 0, f"unexpected output: {result.output}" E AssertionError: unexpected output: E assert 1 == 0 E +1 E -0 .tox/py3/lib/python3.7/site-packages/swh/deposit/tests/cli/test_client.py:662: AssertionError