Python Pytest

Open-source Python projects categorized as Pytest | Edit details

Top 23 Python Pytest Projects

  • GitHub repo SeleniumBase

    A Python framework that inspires developers to become better test automation engineers. 🧠💡

    Project mention: What to learn for QA / testing automation with Python ? | | 2021-08-29

    i haven't. it's the first time i heard about it actually. on our project, it's selenium with seleniumbase

  • GitHub repo pudb

    Full-screen console debugger for Python

    Project mention: Vim and debuggers | | 2022-01-05

    Most of my work these days is in python, for which my preferred debugger is pudb. For integration into vim, I maintain a small plugin for managing breakpoints: vim-pudb-and-jam

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • GitHub repo pytest-cov

    Coverage plugin for pytest.

    Project mention: Lab8 Manage project complexity through the use of Automated Testing | | 2021-11-13

    How to install Pytest-cov

  • GitHub repo Schemathesis

    A modern API testing tool for web applications built with Open API and GraphQL specifications.

    Project mention: How bad models ruin an API (or why design-first is the way to go) | | 2022-01-09

    Schemaless schemas make testing difficult. Tools like Dredd and Schemathesis rely on your API documentation to generate tests and validate your API responses. A collection of free-form arrays like the above model will pass nearly every test, even if the length of the arrays or their contents are wrong. Schemaless schemas are also useless for API mocking, which is a fundamental part of building reliable API integrations.

  • GitHub repo pytest-django

    A Django plugin for pytest.

    Project mention: My findings for a pytest-django warning - Error when trying to teardown test databases | | 2021-11-08

    The source of this warning is from pytest-django's file. It can be found here on GitHub . The function being called is teardown_database which is defined on line 126.

  • GitHub repo tavern

    A command-line tool and Python library and Pytest plugin for automated testing of RESTful APIs, with a simple, concise and flexible YAML-based syntax (by taverntesting)

    Project mention: Looking for fast (non-electron) alternative for Postman to test REST API in Windows | | 2021-09-19

    At work we are really not fond of postman, at all. We like Tavern quite a lot

  • GitHub repo pytest-randomly

    :game_die: Pytest plugin to randomly order tests and control random.seed

    Project mention: Introduction to Flaky Tests by Example | | 2021-07-16

    By “chance” the tests were always run in the right order for years. This situation could have been detected way earlier by using a random execution order for tests. It happens that python has simple modules to do so.

  • OPS

    OPS - Build and Run Open Source Unikernels. Quickly and easily build and deploy open source unikernels in tens of seconds. Deploy in any language to any cloud.

  • GitHub repo best-of-python-dev

    🏆 A ranked list of awesome python developer tools and libraries. Updated weekly.

  • GitHub repo pytest-clarity

    A plugin to improve the output of pytest with colourful unified diffs

    Project mention: Ward: Modern Test Framework for Python | | 2021-05-16

    Just saw and also pytest fork on Darren's github profile.

    @Darren, did you consider extending/improving pytest over starting from scratch? if yes, what were you biggest drivers to start a new test framework

  • GitHub repo testbook

    🧪 📗 Unit test your Jupyter Notebooks the right way

    Project mention: Unit testing Python code in Jupyter notebooks | | 2021-03-22

    The testbook project is a different take on notebook unit testing. It allows you to refer to your notebooks in pure Python code from outside a notebook. This allows you to use any testing framework you like (for example, pytest, or unittest) in separate Python modules. You may have a situation where allowing users to modify and update notebook code is the best way to keep code updated and to allow for flexibility for end users. But you may prefer that the code still be tested and verified separately. Testbook makes this an option.

  • GitHub repo Websauna

    Websauna is a full stack Python web framework for building web services and back offices with admin interface and sign up process

  • GitHub repo usaspending-api

    Server application to serve U.S. federal spending data via a RESTful API

    Project mention: Any enterprise level open source django project? | | 2021-12-29
  • GitHub repo pytest-recording

    A pytest plugin that allows recording network interactions via

    Project mention: Two Methods for Testing HTTPS API Calls with Python and pytest and also Communicating with the In-laws | | 2021-03-16

    An alternate approach involves using, a tool that records HTTP interactions in YAML files, then intercepts future HTTP requests and plays back the recorded responses. In this tutorial, we will use pytest-vcr to interface with, although pytest-recording is another good option for doing the same.

  • GitHub repo pytest-describe

    Describe-style plugin for the pytest framework

    Project mention: My Python testing style guide – Stargirl (Thea) Flowers | | 2021-03-24

    I've found pytest to encourage tests with really long method names, examples from the post:

    * test_refresh_failure

    * test_refresh_with_timeout

    These get even longer like test_refresh_with_timeout_when_username_is_not_found for example.

    pytest-describe allows for a much nicer testing syntax. There's a great comparison here:

    TL;DR, this is nicer:

    def describe_my_function():

        def with_default_arguments():

  • GitHub repo kubetest

    Kubernetes integration testing in Python via pytest

    Project mention: orchestrating contaiers for testing? | | 2022-01-17

    - but you have to recreate a manifest with code. Not ideal for mildly complex stuff. 3+years was last commit :(( - which is weirdly specific to certain container images. Again, not working off a manifest (I think), 1 months since last commit. :( - which uses kubernetes(k8s) manifests and integrates with pyTest. Last commit 10 month ago.

  • GitHub repo pytest_httpx

    pytest fixture to mock HTTPX

    Project mention: Tips to prevent adoption of your API | | 2021-06-16

    I avoid writing automated tests that hit an external API - especially one out of my control - because I don't want my CI runs to ever fail because someone else's service wasn't responding. I want CI to be a completely closed box, such that any failures mean there's a bug in my code.

    If I want to test external APIs I'll do that in a separate set of integration tests which are run as part of a separate system, not as part of my CI for every code commit to my repo.

    I mostly use Python, and the APIs I talk to are mostly accessed via the requests or httpx libraries - both of which have excellent libraries for productive mocking:



  • GitHub repo xdoctest

    A rewrite of Python's builtin doctest module (with pytest plugin integration) with AST instead of REGEX.

  • GitHub repo drf-openapi-tester

    Test utility for validating OpenAPI documentation

    Project mention: If you use OpenAPI specs for API your documentation 👏 | | 2021-02-23

    We've recently put a lot of effort into rewriting drf-openapi-tester - a test utility made to help developers test their API docs.

  • GitHub repo pytest-codeblocks

    :page_facing_up: Test code blocks in your READMEs

    Project mention: pytest-codeblocks: Test snippets from your READMEs | | 2021-12-09

    If you have code blocks in your README, you can pytest them with pytest-codeblocks. pip install pytest-codeblocks pytest --codeblocks I just added better config support for it, especially if you'd like to conditionally skip testing some of the blocks (skipif).

  • GitHub repo pytest-watcher

    Rerun pytest when your code changes

    Project mention: Pytest-watcher – a working alternative to pytest-watch | | 2021-09-18
  • GitHub repo pytest-sentry

    Track flaky tests in Sentry

    Project mention: Audacity may collect “Data necessary for law enforcement, litigation” and more | | 2021-07-03

    viraptor was not really responding to the discussion about the shell script at all, but was rather talking about stuff like

  • GitHub repo openverse-catalog

    Identifies and collects data on cc-licensed content across web crawl data and public apis.

    Project mention: Hacktoberfest Recap | | 2021-10-31

    Issue, Pull Request, Blog Post

  • GitHub repo stock_reminder_bot

    A twitter bot that reminds you of stock and crypto predictions

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2022-01-17.

Python Pytest related posts


What are some of the best open-source Pytest projects in Python? This list will help you:

Project Stars
1 SeleniumBase 2,572
2 pudb 2,299
3 pytest-cov 1,171
4 Schemathesis 1,103
5 pytest-django 981
6 tavern 836
7 pytest-randomly 393
8 best-of-python-dev 386
9 pytest-clarity 296
10 testbook 273
11 Websauna 261
12 usaspending-api 196
13 pytest-recording 174
14 pytest-describe 151
15 kubetest 143
16 pytest_httpx 133
17 xdoctest 130
18 drf-openapi-tester 81
19 pytest-codeblocks 58
20 pytest-watcher 54
21 pytest-sentry 31
22 openverse-catalog 22
23 stock_reminder_bot 20
Find remote jobs at our new job board There are 28 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.