Commit f548714
committed
docs(_ext[sphinx_pytest_fixtures]): suppress generic resource usage snippets
why: def test_example(server: Server): ... is trivially obvious to any
pytest user and adds nothing beyond the fixture signature. Override-hook
and factory snippets are genuinely useful (conftest.py pattern and
two-step instantiation pattern).
what:
- Return None for resource kind in _build_usage_snippet() instead of
generating a generic test function snippet
- Keep autouse note, factory snippet, and override-hook snippet1 parent 2e4c02d commit f548714
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
982 | 982 | | |
983 | 983 | | |
984 | 984 | | |
985 | | - | |
986 | | - | |
987 | | - | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
988 | 989 | | |
989 | 990 | | |
990 | 991 | | |
| |||
0 commit comments