Python Testing

Open-source Python projects categorized as Testing

Top 23 Python Testing Projects

  • LocalStack

    💻 A fully functional local AWS cloud stack. Develop and test your cloud & Serverless apps offline!

    Project mention: How I start every new Python backend API project | | 2023-01-19

    If my project uses docker, I put all docker-related files here. For example: init scripts for localstack.

  • locust

    Scalable load testing tool written in Python

    Project mention: Simple, open-source, lightweight stress tool | | 2023-01-23

    If, like me, AGPL isn't your cup of tea, you can look at vegeta or locust which are both MIT.

  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Platform where developers build real-time applications for analytics, IoT and cloud-native services. Easy to start, it is available in the cloud or on-premises.

  • faker

    Faker is a Python package that generates fake data for you. (by joke2k)

    Project mention: Database automation challenges and how to solve them | | 2022-06-07

    For a cloud-based solution, one can write their own Terraform or CloudFormation for installation as soon as their RDS instance boots up with appropriate security and authentication details. For a local dev environment, one can rely on Faker to create mock database data for your database.

  • httpbin

    HTTP Request & Response Service, written in Python + Flask.

    Project mention: Web.Contents based on information in columns (each row) iteration | | 2023-01-22

    let response = try Web.Contents( "", [ RelativePath = "/status/codes/418", ManualStatusHandling = {401, 402, 404} & {405..500} ] ) catch (e) => "Error, but we caught it" meta e in response

  • pytest

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

    Project mention: How to raise the quality of scientific Jupyter notebooks | | 2023-01-11

    Since ITK's inception in 1999, there has been a focus on engineering practices that result in high-quality software. High-quality scientific software is driven by regression testing. The ITK project supported the development of CTest and CDash unit testing and software quality dashboard tools for use with the CMake build system. In the Python programming language, the pytest test driver helps developers write small, readable scripts that ensure their software will continue to work as expected. However, pytest can only test Python scripts by default, and errors in untested computational notebooks are more common than well-tested Python code.

  • Robot Framework

    Generic automation framework for acceptance testing and RPA

    Project mention: Web Testing With Robot Framework | | 2023-01-29

    This is part 3 in a series of blog posts meant to get you started with automated testing using Robot Framework. If you haven't checked out the other posts in the series, please do. This post builds on what I've discussed previously.

  • PyAutoGUI

    A cross-platform GUI automation Python module for human beings. Used to programmatically control the mouse & keyboard.

    Project mention: AutoHotkey v2 Official Release Announcement | | 2023-01-28
  • Sonar

    Write Clean Python Code. Always.. Sonar helps you commit clean code every time. With over 225 unique rules to find Python bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.

  • Moto

    A library that allows you to easily mock out tests based on AWS infrastructure.

    Project mention: Unit Testing an Airflow Dag | | 2023-01-25

    As for mocking, you can take a look at the moto library for mocking the AWS SDK, or for more simple cases even just use a `unittest.Mock/MagicMock` object. If you're having trouble trying to use the mocks in your code, it's a good sign your code is too highly coupled and it'd pay to re-factor, for example using dependency injection, design patterns like adapter/facade etc. (but don't over-do it)

  • hypothesis

    Hypothesis is a powerful, flexible, and easy to use library for property-based testing.

    Project mention: Was muss man als nicht-technischer Quereinsteiger in Data Science *wirklich* können? | | 2022-09-13

    The Python error steamroller.

    Project mention: Getting mentioned in a random issue on a random repository I’ve never even looked at. What is it? Spam. | | 2022-12-29

    "Hot programmer girls in your area, click here to get an invite to their private repositories. 😏😏😏😏😏"

  • Mimesis

    Mimesis is a high-performance fake data generator for Python, which provides data for a variety of purposes in a variety of languages.

    Project mention: Open source | | 2022-07-19

    P.S Here is a project I was talking about.

  • undetected-chromedriver

    Custom Selenium Chromedriver | Zero-Config | Passes ALL bot mitigation systems (like Distil / Imperva/ Datadadome / CloudFlare IUAM)

    Project mention: Bot detection on google? | | 2023-01-15

    Try using undetected chromedriver it should make your scraper harder to detect. If that doesn't work then you will need to use proxies.

  • pywinauto

    Windows GUI Automation with Python (based on text properties)

    Project mention: Just found out about something that's a lifesaver for working with undocumented COM objects | | 2022-10-11
  • responses

    A utility for mocking out the Python Requests library.

    Project mention: How I start every new Python backend API project | | 2023-01-19


  • freezegun

    Let your Python tests travel through time

    Project mention: How to simulate a delay in a test? | | 2022-09-21

    I had much fun with

  • molecule

    Molecule aids in the development and testing of Ansible roles

    Project mention: Learned bit of Ansible to automate some post-fresh-Arch-install work | | 2022-10-16

    I would recommend you to use roles instead of just playbooks and to test them with molecule. Molecule allows you to quickly test your Ansible roles in a fresh Arch Linux podman container, completely isolated from your real system.

  • manticore

    Symbolic execution tool

    Project mention: A Comprehensive Guide on Web3 Programming Languages and Tools | | 2022-06-06

    MythX, Mythril, Manticore, and Echidna are other tools for security audits.

  • tox

    Command line driven CI frontend and development task automation tool. (by tox-dev)

  • factory_boy

    A test fixtures replacement for Python

  • Behave

    BDD, Python style.

    Project mention: Top 7 Python Frameworks for Automation Testing | | 2022-08-10

    Behave on GitHub —

  • splinter

    splinter - python test framework for web applications


    Automatically mock your HTTP interactions to simplify and speed up testing

  • fake2db

    create custom test databases that are populated with fake data

  • SaaSHub

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

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 2023-01-29.

Python Testing related posts


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

Project Stars
1 LocalStack 45,620
2 locust 20,575
3 faker 15,316
4 httpbin 11,413
5 pytest 9,728
6 Robot Framework 7,724
7 PyAutoGUI 7,644
8 Moto 6,604
9 hypothesis 6,493
10 4,564
11 Mimesis 3,875
12 undetected-chromedriver 3,848
13 pywinauto 3,833
14 responses 3,795
15 freezegun 3,557
16 molecule 3,497
17 manticore 3,287
18 tox 3,153
19 factory_boy 3,037
20 Behave 2,757
21 splinter 2,595
22 2,362
23 fake2db 2,165
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives