docs: shorten the readme and trim code comments
This commit is contained in:
@@ -31,8 +31,7 @@ def calls(monkeypatch):
|
||||
|
||||
|
||||
def test_search_asks_for_the_first_page(calls):
|
||||
"""Audible's page parameter is 0-based: page=1 skips the only page of results
|
||||
and a search like "Der Superpapagei" comes back empty."""
|
||||
"""Audible's page parameter is 0-based, page=1 skips the only page of hits."""
|
||||
results = asyncio.run(audible.search("Der Superpapagei"))
|
||||
assert [r.title for r in results] == ["Die drei ??? und der Super-Papagei"]
|
||||
assert calls and all(int(c["page"]) == 0 for c in calls)
|
||||
|
||||
Reference in New Issue
Block a user