Skip to content
This repository has been archived by the owner on Jul 27, 2024. It is now read-only.

Commit

Permalink
Fix some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaudiuGeorgiu committed Aug 31, 2017
1 parent 44e6bcd commit 62eb815
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_playstore_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ def test_list_app_by_valid_category(self, playstore):

def test_list_app_by_valid_category_and_subcategory(self, playstore):
apps = playstore.protobuf_to_dict(
playstore.list_app_by_category('PRODUCTIVITY', 'apps_topselling_free', 3))['doc'][0]['child']
assert len(apps) == 3
playstore.list_app_by_category('PRODUCTIVITY', 'apps_topselling_free', 5))['doc'][0]['child']
assert len(apps) <= 5
assert all(app['docid'] for app in apps)
assert all(app['title'] for app in apps)

Expand All @@ -92,8 +92,8 @@ def test_list_app_by_category_missing_category(self, playstore):
#####################

def test_valid_search(self, playstore):
results = playstore.protobuf_to_dict(playstore.search('music', 3))['child']
assert len(results) == 3
results = playstore.protobuf_to_dict(playstore.search('music', 5))['child']
assert len(results) <= 5
assert all(result['docid'] for result in results)
assert all(result['title'] for result in results)

Expand Down

0 comments on commit 62eb815

Please sign in to comment.