Unit tests for praw?

This page summarizes the projects mentioned and recommended in the original post on /r/redditdev

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • PRAW

    PRAW, an acronym for "Python Reddit API Wrapper", is a python package that allows for simple access to Reddit's API.

  • 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.

  • PrawWrapper

    A wrapper around PRAW for easier unit testing

  • 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.

  • 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.

    WorkOS logo
  • RemindMeBot

    u/RemindMeBot on reddit

  • 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.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts