Tag: pytest
-
Import Side Effects Break Tests: 4 Patterns That Pass Locally
Import side effects pass locally but break in CI. Here's how env vars, DB connections, and plugin registration fail when test order changes.
-
pytest vs unittest vs hypothesis: Coverage Blind Spots
100% line coverage still ships bugs. See how pytest, unittest, and hypothesis expose different edge cases โ with the exact inputs each framework missed.
-
unittest to pytest Migration: Fixtures and Async Patterns
Migrate unittest to pytest with practical fixture examples and async testing patterns. Learn parametrization, mocking, and real-world refactoring tips.