mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-08-31 08:13:11 +03:00
fix(tui): avoid blocking local gateway startup
This commit is contained in:
@@ -4,7 +4,7 @@ from nanobot.cli.webui_support import _prepare_webui_bundle_for_gateway
|
||||
from nanobot.config.schema import Config
|
||||
|
||||
|
||||
def test_source_checkout_rebuilds_the_webui_from_every_gateway_entrypoint(monkeypatch) -> None:
|
||||
def test_source_checkout_preserves_warn_only_gateway_startup(monkeypatch) -> None:
|
||||
modes: list[str] = []
|
||||
monkeypatch.setattr(
|
||||
"nanobot.cli.webui_support.inspect_webui_bundle",
|
||||
@@ -18,7 +18,7 @@ def test_source_checkout_rebuilds_the_webui_from_every_gateway_entrypoint(monkey
|
||||
|
||||
_prepare_webui_bundle_for_gateway(Config(), mode="warn")
|
||||
|
||||
assert modes == ["auto"]
|
||||
assert modes == ["warn"]
|
||||
|
||||
|
||||
def test_vite_mode_does_not_build_the_source_webui_bundle(monkeypatch) -> None:
|
||||
|
||||
Reference in New Issue
Block a user