Software Testing / Learning brief
Tom moves shared set-up into a pytest conftest file
In simple terms / 01
What this means in plain language
Tom moves a repeated sign-in into conftest.py, gives it a session scope and learns why a broad fixture cannot use a narrow one.
Complete lesson / 02
Understand the full idea, step by step
Evidence & review / 03
Evidence & review
The date on this lesson is when it went up on Payments Signal, not when its material was written — most of these were brought across from an earlier catalogue in a single run, which is why so many of them share a date. What the lesson says about the world is dated by the review above and by the sources below it.
Hands-on steps for this tool. The people and the app are invented.
What this brief simplifies: Selected primary passages actually read 7 November 2026; Selenium/version limits stated in lesson. Daily List, rules and observations are synthetic, not an executed live-app test.
Sources for this brief — 4 sources
- Implementation-specific
pytest fixture guide ↗ — pytest-dev contributors · Scopes and parameter caching; yield-setup failure; broader/narrower dependency lifetimes (selected actual primary passages read 7 November 2026; live publisher documentation, not every linked section or historical release).
Selected actual primary passages read, including the specific fixture/marker/collection boundaries described. Daily List rules, people and paths are synthetic; no pytest/xdist execution or complete production fixture design is claimed. Live documentation has no fixed edition claimed.
- Implementation-specific
pytest fixture reference ↗ — pytest-dev contributors · Availability from requesting test perspective; conftest upward search and nearest applicable override (selected actual primary passages read 7 November 2026; live publisher documentation, not every linked section or historical release).
Selected actual primary passages read, including the specific fixture/marker/collection boundaries described. Daily List rules, people and paths are synthetic; no pytest/xdist execution or complete production fixture design is claimed. Live documentation has no fixed edition claimed.
- Implementation-specific
pytest-xdist how-to ↗ — pytest-dev contributors · Session-scoped fixtures across separate workers; optional cross-process coordination example (selected actual primary passages read 7 November 2026; live publisher documentation, not every linked section or historical release).
Selected actual primary passages read, including the specific fixture/marker/collection boundaries described. Daily List rules, people and paths are synthetic; no pytest/xdist execution or complete production fixture design is claimed. Live documentation has no fixed edition claimed.
- Simplified educational illustration
Payments Signal editorial teaching models — Payments Signal · Synthetic Daily List rule and observations stated in the lesson; not a publisher application fact or an executed live-app result.
Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.