Commit dc269ec
committed
pytest_doctest_docutils(fix[collect]): Backport autouse fixtures support
Backport: pytest commit 9cd14b4ff (2024-02-06)
Ref: pytest-dev/pytest@9cd14b4ff
why: Autouse fixtures were not being discovered for doctest files
what:
- Add parsefactories() call to DocTestDocutilsFile.collect()
- Ensures session fixture manager processes the doctest module
- Allows autouse fixtures from conftest.py to apply to doctests1 parent aec6702 commit dc269ec
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
309 | 315 | | |
310 | 316 | | |
311 | 317 | | |
| |||
0 commit comments