Our great sponsors
-
PRAW
PRAW, an acronym for "Python Reddit API Wrapper", is a python package that allows for simple access to Reddit's API.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
PRAW has lots of unit tests using the built in unittest mocking. After setup, you run a method once, it saves the json response into a cassette, like this, which you can manually edit and it reuses for subsequent runs.
The wrapper is here, the test version is here and some example tests using it are here. I also do the same thing with my sqlite database store.
The wrapper is here, the test version is here and some example tests using it are here. I also do the same thing with my sqlite database store.