# `Nous.Skills.PythonTesting`
[🔗](https://github.com/nyo16/nous/blob/v0.21.1/lib/nous/skills/python_testing.ex#L1)

Built-in skill — pytest patterns.

Injects a system-prompt section with examples for `yield` fixtures that clean
up, factory fixtures for complex objects, `@pytest.mark.parametrize` case
tables, patching only at external boundaries, `pytest-asyncio` async tests,
fixture scoping from function to session, and test names that spell out the
behaviour under test.

Activates on prompts containing "pytest", "python test", "test python",
"fixture" or "parametrize". Group `:testing`;
tags `:python`, `:testing`, `:pytest`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
