What is Pytest?
A testing framework for Python that simplifies writing and running tests with powerful features like fixtures and parametrize.
Pytest makes testing easy with simple assert statements (no special API needed), automatic test discovery, detailed failure reports, and a rich plugin ecosystem. Fixtures provide reusable test setup/teardown.
Key features include parametrize (run test with multiple inputs), markers (categorize tests), conftest.py (shared fixtures), and plugins (coverage, mock, django). Pytest is the de facto standard for Python testing.