datadir = '/var/lib/jenkins/workspace/DDEP/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/deposit/tests/cli/../data'
requests_mock_datadir = <requests_mock.mocker.Mocker object at 0x7f94461545f8>
cli_runner = <click.testing.CliRunner object at 0x7f94461545c0>
def test_cli_update_metadata_with_swhid_on_other_status_deposit(
datadir, requests_mock_datadir, cli_runner
):
"""Update new metadata with swhid on other deposit status is not possible
"""
api_url_basename = "deposit.test.updateswhid"
deposit_id = 321
deposit_status_xml_path = os.path.join(
datadir, f"https_{api_url_basename}", f"1_test_{deposit_id}_status"
)
with open(deposit_status_xml_path, "r") as f:
deposit_status_xml = f.read()
expected_deposit_status = dict(parse_xml(deposit_status_xml))
> assert expected_deposit_status["swh:deposit_status"] != "done"
E KeyError: 'swh:deposit_status'
.tox/py3/lib/python3.7/site-packages/swh/deposit/tests/cli/test_client.py:610: KeyError
TEST RESULT
TEST RESULT
- Run At
- Nov 19 2020, 3:21 PM