`fixture 'mocker' not found` in a pytest run on CI.
BeginnerTroubleshootingConcurrency, async, tests, services & containers
Answer
Likely causes → mocker comes from the pytest-mock plugin, which is installed locally but not in CI's dependencies.
Diagnose →
pip show pytest-mock
pytest --fixtures | grep mocker
Fix → Add pytest-mock to dev dependencies and the lock file.
Prevent → CI installs exactly from the lock; never rely on globally installed plugins.
More on Concurrency, async, tests, services & containers
`RuntimeError: asyncio.run() cannot be called from a running event loop` in a Jupyter notebook or inside an async framework.Intermediate`RuntimeWarning: coroutine 'fetch' was never awaited` and nothing happens.BeginnerAn asyncio health-checker is no faster than a sequential loop.Advanced`Task was destroyed but it is pending!` at shutdown.Advanced`OSError: [Errno 24] Too many open files` from an asyncio scanner with 20,000 targets.IntermediateA `ThreadPoolExecutor` job finishes "successfully" but half the work is missing, with no errors logged.Intermediate