Pytest
6 posts
How Fast Is It? Benchmarking Your Code with Pytest-Benchmark
Performance matters! Easily measure Python library speed with pytest-benchmark. Track performance, find regressions, and optimize effectively with benchmarks.
Mastering Mocking in Python with pytest-mock
A practical guide to mocking in Python testing - from basic concepts to advanced techniques with pytest-mock and other helpful libraries
Will It Blend? Testing Across Environments with Tox
Works on your machine? Great, but what about Python 3.9 or 3.12? Tox ensures library compatibility across different Python versions and dependency sets easily.
Are Your Tests Enough? Measuring Coverage with Coverage.py
Writing tests is step one. Step two is knowing what parts of your library code those tests actually exercise. Enter Coverage.py.
Why Your Library Needs Pytest (And How to Get Started)
Testing is vital for Python libraries. Explore why it''s crucial and how Pytest simplifies writing powerful tests with less boilerplate and better assertions.
The Center of Your Python Project: Understanding pyproject.toml
From setup.py chaos to pyproject.toml clarity. Learn why it exists, how it standardizes Python packaging/tool config via PEPs (518, 517, 621), and its anatomy.