Don't hard code runtime-dir, read it with `._state.get_rt_dir()`

main
Tyler Goodlet 2025-08-18 20:27:03 -04:00
parent 331921f612
commit 79f502034f
1 changed files with 3 additions and 2 deletions

View File

@ -18,8 +18,9 @@ from tractor import (
@pytest.fixture @pytest.fixture
def bindspace_dir_str() -> str: def bindspace_dir_str() -> str:
bs_dir_str: str = '/run/user/1000/doggy' rt_dir: Path = tractor._state.get_rt_dir()
bs_dir = Path(bs_dir_str) bs_dir: Path = rt_dir / 'doggy'
bs_dir_str: str = str(bs_dir)
assert not bs_dir.is_dir() assert not bs_dir.is_dir()
yield bs_dir_str yield bs_dir_str