testsAndMisc/python_pkg/sql_drills/tests/conftest.py
2026-11-02 08:24:46 +01:00

15 lines
425 B
Python

"""Keep the optional focus tracker out of every test unless a test fakes it."""
from __future__ import annotations
import sys
from typing import Any, cast
import pytest
@pytest.fixture(autouse=True)
def _no_real_focus_tracker(monkeypatch: pytest.MonkeyPatch) -> None:
"""Make ``import focus_project`` fail, so no test writes live activity."""
monkeypatch.setitem(sys.modules, "focus_project", cast("Any", None))