tmux-amq/tests/test_config_paths.py

7 lines
206 B
Python
Raw Normal View History

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"