Skip to content

Commit 6911bc2

Browse files
committed
add collection test
1 parent 965a836 commit 6911bc2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scraper_test.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,9 @@ def test_query_multiple_pages():
5858
if page_results:
5959
[results.add(x) for x in page_results]
6060
assert len(results) > (page-1)*50
61-
print(f"Total results for query {query}: {len(results)}")
61+
print(f"Total results for query {query}: {len(results)}")
62+
63+
def test_get_app_ids_for_collection():
64+
scraper = AppStoreScraper()
65+
results = scraper.get_app_ids_for_collection(AppStoreCollections.TOP_FREE_IOS, country="us", lang="en")
66+
assert len(results) > 0

0 commit comments

Comments
 (0)