StackedStats

A personal blog focusing on programming, technology, data science, engineering and home lab setups.

Recent Posts

View all posts →

About testing your code in Python (Part 3) — pytest Fixtures

7 min read

Learn how to leverage pytest fixtures for better Python testing. This guide covers fixture benefits like reusability and atomic test control, explores the three-phase structure (setup, yield, teardown), and demonstrates creating custom fixtures to reduce code duplication while maintaining comprehensive test coverage.

Current Projects