Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
jake authored and jake committed Jan 30, 2023
1 parent 11457c2 commit 451b066
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/cli/test_ia_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,12 @@ def test_ia_search_itemlist(capsys):
'q': 'collection:attentionkmartshoppers',
'count': '10000'
}
p2 = p1.copy()
p2['cursor'] = 'W3siaWRlbnRpZmllciI6IjE5NjEtTC0wNTkxNCJ9XQ=='
rsps.add(responses.POST, url,
body=test_scrape_response,
match=[responses.matchers.query_param_matcher(p1)])
_j = json.loads(test_scrape_response)
del _j['cursor']
_r = json.dumps(_j)
rsps.add(responses.POST, url,
body=_r,
match=[responses.matchers.query_param_matcher(p2)])
match=[responses.matchers.query_param_matcher(p1)])
ia_call(['ia', 'search', 'collection:attentionkmartshoppers', '--itemlist'])

out, err = capsys.readouterr()
Expand Down

0 comments on commit 451b066

Please sign in to comment.