Python unit-testing

Open-source Python projects categorized as unit-testing

Top 23 Python unit-testing Projects

unit-testing
  1. pytest

    The pytest framework makes it easy to write small tests, yet scales to support complex functional testing

    Project mention: Most Effective Approaches for Debugging Applications | dev.to | 2025-04-27

    Large-scale changes to fix a bug often introduce unintended side effects, making incremental fixes a safer approach. Robbin Schuchmann, Co-Founder of EOR Overview, advises, “Applying fixes incrementally is the most reliable way to correct bugs in applications.” By adjusting one variable or function at a time and validating each change with tools like pytest or Mocha, developers ensure fixes are effective without destabilizing the system. This aligns with test-driven development (TDD), which a 2022 IEEE study found reduces defect rates by 15%. Incremental fixes also simplify rollbacks, preserving stability.

  2. Sevalla

    Deploy and host your apps and databases, now with $50 credit! Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!

    Sevalla logo
  3. PlatformIO

    Your Gateway to Embedded Software Development Excellence :alien:

    Project mention: 13 yo "Vibe Coding" on Raspberry Pi and Arduino | dev.to | 2025-03-24

    We searched for other IDEs that would be simple to use, allow easy import of Arduino libraries, and upload the code on the board. I wanted something of the like of Atom editor, but it was not supported on Raspberry Pi (and deprecated now). We found that PlatformIO could be an option. It is a plugin in VSCode that can manage many type of boards. We went ahead, installed VScode, then the PlatformIO extension. We opened a terminal in VScode with Q chat, and voila! Valentin could finally continue to play with a more stable solution. He had a simple way to code, compile, and push code on the Arduino.

  4. django-jenkins

    Plug and play continuous integration with django and jenkins

  5. dirty-equals

    Doing dirty (but extremely useful) things with equals.

  6. LLM-Finetuning-Toolkit

    Toolkit for fine-tuning, ablating and unit-testing open-source LLMs.

  7. deepstate

    A unit test-like interface for fuzzing and symbolic execution

  8. pytest-flask

    A set of pytest fixtures to test Flask applications

  9. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  10. testbook

    🧪 📗 Unit test your Jupyter Notebooks the right way

  11. kaizen

    Automate the tedious development tasks with AI

    Project mention: Generate meaningful commit messages with Ollama and Kaizen | dev.to | 2024-09-22

    Starring our repository: Kaizen on GitHub

  12. mutahunter

    Open Source, Language Agnostic Mutation Testing

  13. cuallee

    Possibly the fastest DataFrame-agnostic quality check library in town.

  14. databricks-nutter-repos-demo

    Demo of using the Nutter for testing of Databricks notebooks in the CI/CD pipeline

  15. CURE

    ReasonFlux-Coder: Open-Source LLM Coders with Co-Evolving Reinforcement Learning

    Project mention: Co-Evolving LLM Coder and Unit Tester via Reinforcement Learning | news.ycombinator.com | 2025-06-05
  16. drf-api-action

    drf-api-action elevates Django Rest Framework testing with the action_api fixture, simplifying REST endpoint testing to a seamless, function-like experience.

  17. callee

    Argument matchers for unittest.mock

  18. aws-openai

    Example ChatGPT chatbots using Langchain and OpenAI

    Project mention: AWS Serverless implementation of all of the OpenAI API documentation examples | news.ycombinator.com | 2025-07-30

    A React + AWS Serverless + OpenAI Python PyPi full stack implementation of all of the [example applications](https://platform.openai.com/docs/examples) found in the official OpenAI API documentation. See this [system architectural diagram](https://github.com/FullStackWithLawrence/aws-openai/blob/mai...) for details.

  19. pytypest

    Testing framework that empowers pytest (with better fixtures and parametrization)

  20. data-structures-for-teaching

    Implementations of some Data Structures and Algorithms, with different approaches and some practical applications.

  21. unit-text

    Unit tests for plain text - LLM as a copy editor

    Project mention: Show HN: UnitText – Unit Tests for Text | news.ycombinator.com | 2025-04-15

    In our battle against AI-written content, we launched UnitText as an alternative to use AI to review text, instead of writing it. I got the idea from this lovely book "Writing for Developers"[1] that recommended some quality prompts to use a LLM as what could be considered a copy editor.

    I initially liked to call it "unit tests for text", which inspired a prototype,[2] a blog post,[3] and then this product.

    We believe everyone is getting really fed up of reading content only to immediately understand it was written by a robot. At the same time, we don't think language models are completely to blame, they are just a tool, and it's on us to use them properly.

    The idea of UnitText is that before one starts writing they define a goal and audience for their content. It could be a blog post, but also an email... at some point we'd like to offer different templates for various types of content.

    The human is the one doing the writing, and they can then ask the AI to "review" (or, "test") the content, to see whether the goal was met, the explanation is clear, something can be added or cut...

    [1]: https://www.manning.com/books/writing-for-developers

    [2]: https://github.com/sealambda/unit-text

    [3]: https://www.sealambda.com/blog/this-post-passed-unit-tests/

  22. GitHub-Stalker

    Track your GitHub statistics with Pandas

  23. parametrize_from_file

    Read unit test parameters from config files

  24. pymox

    Pymox - Python mocking on steroids

  25. synphage

    Pipeline to create phage genome synteny graphics from genbank files

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
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).

Python unit-testing discussion

Log in or Post with

Python unit-testing related posts

  • Testando código que chama serviços da AWS

    4 projects | dev.to | 4 Feb 2025
  • How ReportPortal "Made" Pytest Run Twice

    1 project | dev.to | 24 Nov 2024
  • Local Variables as Accidental Breadcrumbs for Faster Debugging

    1 project | news.ycombinator.com | 10 Oct 2024
  • Setting up my own landing zone on AWS

    5 projects | dev.to | 25 Dec 2023
  • Integrating Lab Equipment into pytest-Based Tests

    1 project | /r/Python | 4 Oct 2023
  • The Uncreative Software Engineer's Compendium to Testing

    7 projects | dev.to | 31 Jul 2023
  • pytest VS vedro - a user suggested alternative

    2 projects | 16 Jul 2023
  • A note from our sponsor - Sevalla
    sevalla.com | 1 Sep 2025
    Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more! Learn more →

Index

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

# Project Stars
1 pytest 13,023
2 PlatformIO 8,522
3 django-jenkins 940
4 dirty-equals 902
5 LLM-Finetuning-Toolkit 854
6 deepstate 837
7 pytest-flask 497
8 testbook 428
9 kaizen 294
10 mutahunter 280
11 cuallee 202
12 databricks-nutter-repos-demo 153
13 CURE 110
14 drf-api-action 100
15 callee 88
16 aws-openai 66
17 pytypest 59
18 data-structures-for-teaching 53
19 unit-text 40
20 GitHub-Stalker 36
21 parametrize_from_file 22
22 pymox 14
23 synphage 13

Sponsored
Deploy and host your apps and databases, now with $50 credit!
Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!
sevalla.com

Did you know that Python is
the 2nd most popular programming language
based on number of references?