Skip to content

Commit

Permalink
tests: remove useless register_uri() from test_edit_variant
Browse files Browse the repository at this point in the history
The edit_variant() method does not make any GET requests, so we do not
need to register a fake GET response. (This was likely a bad
copy-and-paste from another test.)
  • Loading branch information
ktdreyer authored and mergify[bot] committed Sep 3, 2020
1 parent 2c4c5b2 commit 94896ec
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/test_errata_tool_variant.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ def test_create_variant(self, client, params):
assert history[0].json() == expected

def test_edit_variant(self, client, params):
client.adapter.register_uri(
'GET',
PROD + '/api/v1/variants?filter%5Bname%5D=8Base-RHCEPH-4.0-Tools',
json=ceph_tools_variant_json_response())
client.adapter.register_uri(
'PUT',
PROD + '/api/v1/variants/2341')
Expand Down

0 comments on commit 94896ec

Please sign in to comment.