2026-05-19 22:42:38 +08:00
|
|
|
import importlib
|
|
|
|
|
|
|
|
|
|
from nanobot.session import webui_turns
|
2026-10-21 16:13:59 +08:00
|
|
|
from nanobot.webui import transcript
|
2026-05-19 22:42:38 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_legacy_webui_utils_imports_resolve_to_new_modules() -> None:
|
|
|
|
|
legacy_transcript = importlib.import_module("nanobot.utils.webui_transcript")
|
|
|
|
|
legacy_turn_helpers = importlib.import_module("nanobot.utils.webui_turn_helpers")
|
|
|
|
|
|
|
|
|
|
assert legacy_transcript.append_transcript_object is transcript.append_transcript_object
|
|
|
|
|
assert legacy_turn_helpers.mark_webui_session is webui_turns.mark_webui_session
|