Updated the test code to use the new method and arguments.
This commit is contained in:
parent
c656a67961
commit
194ee6272d
@ -207,8 +207,9 @@ async def main():
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
async def mock_event_emitter(event: dict): print("Event Emitted:", event["data"])
|
async def mock_event_emitter(event: dict): print("Event Emitted:", event["data"])
|
||||||
await Tools().get_subreddit_feed("sysadmin", mock_event_emitter, __user__)
|
await Tools().get_reddit_feed("sysadmin", RedditPageType.SUBREDDIT, mock_event_emitter, __user__)
|
||||||
await Tools().get_user_feed("natfan", mock_event_emitter, __user__)
|
await Tools().get_reddit_feed("sysadmin/1eb73j6", RedditPageType.SUBREDDIT_COMMENTS, mock_event_emitter, __user__)
|
||||||
|
await Tools().get_reddit_feed("natfan", RedditPageType.USER, mock_event_emitter, __user__)
|
||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
if __name__ == "__main__": asyncio.run(main())
|
if __name__ == "__main__": asyncio.run(main())
|
Loading…
Reference in New Issue
Block a user