You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
293 B

from pathlib import Path
from gcode.session import load_thread_id, save_thread_id
def test_thread_id_persists(tmp_path: Path) -> None:
save_thread_id("thread-abc", tmp_path)
assert load_thread_id(tmp_path) == "thread-abc"
assert (tmp_path / ".gcode" / "session.json").is_file()