mirror of
https://github.com/davegallant/rfd.git
synced 2025-08-06 08:43:41 +00:00
Set default of threads command to 1 page and 40 threads (#80)
* Set default of threads command to 1 page and 40 threads * Echo posts in a pager
This commit is contained in:
@@ -19,11 +19,10 @@ def test_extract_post_id():
|
||||
|
||||
def test_parse_threads(threads_api_response):
|
||||
|
||||
limit = 10
|
||||
threads = parse_threads(threads_api_response, limit)
|
||||
assert len(threads) == limit
|
||||
threads = parse_threads(threads_api_response.get("topics"))
|
||||
assert len(threads) == 10
|
||||
|
||||
|
||||
def test_parse_threads_empty():
|
||||
|
||||
assert parse_threads(None, 10) == []
|
||||
assert parse_threads(None) == []
|
||||
|
Reference in New Issue
Block a user