Skip to content

Commit

Permalink
Correct RequestsMock expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
DuncanDHall committed Apr 22, 2024
1 parent c17a9cd commit 894b736
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/cli/test_ia_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ def test_ia_metadata_modify(capsys):
md_rsp = ('{"success":true,"task_id":447613301,'
'"log":"https://catalogd.archive.org/log/447613301"}')
with IaRequestsMock() as rsps:
rsps.add_metadata_mock('nasa')
rsps.add_metadata_mock('nasa', method=responses.GET)
rsps.add_metadata_mock('nasa', body=md_rsp, method=responses.POST)
rsps.add_metadata_mock('nasa')
valid_key = f'foo-{int(time())}'
ia_call(['ia', 'metadata', '--modify', f'{valid_key}:test_value', 'nasa'])
out, err = capsys.readouterr()
Expand Down

0 comments on commit 894b736

Please sign in to comment.