from tamq.config import lock_path def test_lock_path_override(monkeypatch, tmp_path): monkeypatch.setenv("TAMQ_LOCKFILE", str(tmp_path / "tamq.lock")) assert lock_path() == tmp_path / "tamq.lock"