pytest

FreePythongithub.com

Best for: Testing Python code

Overview

The most widely used Python testing framework. Tests are plain functions with assert, fixtures handle setup, and there are plugins for almost everything.

Strengths

  • Simple asserts
  • Powerful fixtures and plugins

Drawbacks

  • Fixture magic can be hard to follow in big suites

Alternatives to pytest

See all 9 →

The Python Tutorial (official)

Learning Python if you already code
Free

The official tutorial from python.org, covering the core language and standard library. Short, accurate and always current.

Playwright

Browser end-to-end tests
Free

End-to-end testing from Microsoft for Chromium, Firefox and WebKit, with auto-waiting, tracing and a code generator. Also has Python, .NET and Java versions.

npmPyPINuGet
Visit ↗

uv

Managing Python projects and dependencies
Free

Fast Python package and project manager from Astral, written in Rust. Replaces pip, virtualenv, pip-tools and pyenv: it installs Python versions, manages a lockfile and runs scripts.

WindowsmacOSLinux
Visit ↗