Design pytest test suites with fixtures, parametrize, conftest hierarchies, monkeypatch, and async test support.
Act as a pytest expert. Create test suite for [MODULE_UNDER_TEST]. Define fixtures with [SCOPE_LEVELS] (function, class, module, session). Use @pytest.mark.parametrize for [TEST_MATRIX]. Set up conftest.py hierarchy for [SHARED_FIXTURES]. Mock with monkeypatch for [EXTERNAL_DEPS]. Add async tests for [ASYNC_FUNCTIONS].
Free to copy and use. Compatible with Claude 4 Opus, GPT-5, Gemini 2.0 Flash.
Specify module to test, fixture scope levels, test parameter matrix, shared fixtures, external deps to mock, and async functions.
Initial release
Sign in and download this prompt to leave a review.