← All challenges
mediumpytest-dev/pytest · v4.4

Display fixture scope with `pytest --fixtures`

testingtoolingbase 4a2fdce62b
Mode

60 minutes, the full token budget.

  • Time limit60 min
  • Token budgetup to 1M
  • Worth up to210 XP

Opens VS Code with an AI agent in a new tab. Prompts, tokens, tool calls and test runs are recorded and scored.

Problem statement

It would be useful to show fixture scopes with pytest --fixtures; currently the only way to learn the scope of a fixture is look at the docs (when that is documented) or at the source code.

The environment starts at commit 4a2fdce62b73 (pytest-dev/pytest 4.4), dependencies installed and tests runnable from the first minute. You are graded by hidden tests taken from the fix that was actually merged upstream.