
Pytest
Scalable Python testing framework
The Lens
Pytest is the Python test framework that makes writing tests feel natural. Pytest is the one. It's what the Python community converged on, and for good reason: you write plain functions with assert statements, and pytest figures out the rest.
No boilerplate classes, no self.assertEqual nonsense. Write `def test_something:`, use a normal `assert`, and pytest gives you rich failure output showing exactly what went wrong. The fixture system is powerful: dependency injection for tests that keeps setup clean. The plugin ecosystem (1,000+ plugins) covers everything from parallel execution to coverage to Django integration.
Completely free. MIT license. No paid tier, no hosted version. Just `pip install pytest`. Every Python developer should use this. Solo, team of 5, team of 500, it scales. The fixture system actually gets MORE useful as your test suite grows because you can share setup across modules without inheritance hierarchies.
The catch: fixtures have a learning curve. Scope, autouse, and parameterization can get confusing fast. And if you're coming from unittest, the magic can feel uncomfortable at first.
Get tools like this every Wednesday
One featured tool, three on the radar. No fluff.
Free vs Self-Hosted vs Paid
fully free### Free
Everything. Pytest is MIT licensed, maintained by the pytest-dev organization. Funded by donations and sponsors, no commercial entity selling a paid version.
### What You Get
- Test discovery and execution - Rich assertion introspection (no assertEqual needed) - Fixture system with scoping and parameterization - 1,000+ plugins (pytest-cov, pytest-xdist, pytest-django, pytest-asyncio, etc.) - Parallel test execution via pytest-xdist - Comprehensive test reporting
### Cost
$0. `pip install pytest` and you're done. Plugins are also free.
Completely free. The standard Python testing framework. No paid tier exists.
About
- Stars
- 13,836
- Forks
- 3,123
Explore Further
More tools in the directory
openclaw
Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞
370.3k ★claw-code
The repo is finally unlocked. enjoy the party! The fastest repo in history to surpass 100K stars ⭐. Join Discord: https://discord.gg/5TUQKqFWd Built in Rust using oh-my-codex.
190.9k ★n8n
Fair-code workflow automation with native AI capabilities
187.3k ★