Updated the test code to use the new method and arguments.

This commit is contained in:
Nathan Windisch 2024-07-24 22:43:07 +01:00
parent c656a67961
commit 194ee6272d

View File

@ -207,8 +207,9 @@ async def main():
)
}
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_user_feed("natfan", mock_event_emitter, __user__)
await Tools().get_reddit_feed("sysadmin", RedditPageType.SUBREDDIT, 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
if __name__ == "__main__": asyncio.run(main())