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:
1 parent
07c4e3f0d1
commit
42f06ab1dc
4 files changed
+20
-10
No files matched your search
@@ -57,6 +57,15 @@ def _isolate_sessions_root(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> I
|
||||
yield
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def _isolate_star_prompt_store(
|
||||
tmp_path_factory: pytest.TempPathFactory, monkeypatch: pytest.MonkeyPatch
|
||||
) -> None:
|
||||
"""Keep WebUI completion events out of the user's invitation state and lock."""
|
||||
webui_dir = tmp_path_factory.mktemp("star-prompt-webui")
|
||||
monkeypatch.setattr("nanobot.webui.star_prompt.get_webui_dir", lambda: webui_dir)
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def _isolate_pairing_store(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:
|
||||
"""Keep channel pairing tests out of the user's active pairing store."""
|
||||
|
||||
Reference in new issue
Block a user