mirror of
https://github.com/davegallant/rfd.git
synced 2025-08-06 08:43:41 +00:00
fix bug when iterating over all existing posts in a thread (#23)
* fix get posts * remove tail/head and fix posts command
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from rfd.api import build_web_path, extract_post_id, parse_threads
|
||||
|
||||
from rfd.api import extract_post_id
|
||||
from rfd.parsing import build_web_path, parse_threads
|
||||
|
||||
def test_build_web_path():
|
||||
assert build_web_path("/test") == "https://forums.redflagdeals.com/test"
|
||||
@@ -76,4 +76,4 @@ def test_parse_threads(threads_api_response):
|
||||
]
|
||||
)
|
||||
|
||||
assert len(parse_threads(None, 10)) == 0
|
||||
assert len(parse_threads(None, 10)) is 0
|
||||
|
Reference in New Issue
Block a user