test: isolate Star invitation state and stabilize late-result waits (#6076)

* test: isolate Star invitation state and relax late-result deadline

* test: keep invitation fixtures outside test workspaces
This commit is contained in:
chengyongru authored and GitHub committed 2026-10-06 02:49:50 +08:00
1 parent 07c4e3f0d1
commit 42f06ab1dc
4 files changed
+20 -10

No files matched your search

+5 -3
View File
@@ -8,9 +8,11 @@ from nanobot.webui import star_prompt
@pytest.fixture
def state_path(tmp_path, monkeypatch):
monkeypatch.setattr(star_prompt, "get_webui_dir", lambda: tmp_path)
return tmp_path / "star-prompt.json"
def state_path(tmp_path, tmp_path_factory):
webui_dir = star_prompt.get_webui_dir()
assert webui_dir.is_relative_to(tmp_path_factory.getbasetemp())
assert not webui_dir.is_relative_to(tmp_path)
return webui_dir / "star-prompt.json"
def seed_eligible(path: Path):