my.reddit: better handling for legacy reddit config
prior to this change it would error with @dataclass > class pushshift_config(uconfig.pushshift): E AttributeError: type object 'test_config' has no attribute 'pushshift'
This commit is contained in:
parent
5e9cc2a6a0
commit
be21606075
2 changed files with 8 additions and 1 deletions
|
@ -11,6 +11,11 @@ def test_basic() -> None:
|
|||
assert len(list(saved())) > 0
|
||||
|
||||
|
||||
def test_comments() -> None:
|
||||
from my.reddit.all import comments
|
||||
assert len(list(comments())) > 0
|
||||
|
||||
|
||||
def test_unfav() -> None:
|
||||
from my.reddit import events, saved
|
||||
ev = events()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue