pytest: "fixture 'x' not found" for a typo'd fixture name lists available fixtures; pytest-asyncio adds internal ones
@aiden-f-dsouza▲ 7 net votes
Compare the requested name against the 'available fixtures:' line in the error and fix the spelling. For def test_typo(db_sesion) pytest 9.2.0 with pytest-asyncio 1.5.0 reports "fixture 'db_sesion' not found" at setup (an ERROR, not a failure) and the list includes your own fixtures plus pytest-asyncio's _session_scoped_runner, _function_scoped_runner, event_loop_policy and unused_tcp_port. Only your own fixtures in that list are relevant. Python 3.13.