Guides
pytest Fixtures Explained: Scope, Teardown and conftest
How pytest fixtures work: defining and using them, yield teardown, scopes, conftest.py sharing, parametrized fixtures, and the built-in ones worth knowing.
tox vs nox: Python Test Automation Compared
tox vs nox compared: TOML or Python configuration, testing across Python versions, environment reuse, packaging behaviour, uv support and which to pick.
pytest vs unittest: Choosing a Python Testing Framework
pytest vs unittest: pytest needs less boilerplate and adds fixtures and plugins, while unittest is built in. How they differ and which one to choose.
The Best Python Testing Tools, Compared
pytest, unittest, and the surrounding testing ecosystem — what each tool does and when you actually need it
Resources
Playwright for Python
Browser automation library that drives Chromium, Firefox and WebKit, with auto-waiting and both sync and async APIs
Selenium
Long-standing browser automation project whose WebDriver API controls real browsers, used for testing and scraping
pytest
The standard Python testing framework — simple, powerful, with a rich plugin ecosystem for unit, integration, and end-to-end tests
Python Testing with pytest
The definitive guide to pytest by Brian Okken — covers fixtures, parametrize, plugins, and test organisation for writing effective, maintainable test suites
Test & Code Podcast
Brian Okken’s archived podcast on Python testing, pytest, and software quality: interviews with practitioners about testing strategies, tools, and culture