Import AITURK IDE 1.0.0-beta.1 from Hermes 63279301; preserve MIT license
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
|
||||
|
||||
def test_tui_finds_bundled_entry_js(tmp_path):
|
||||
"""_find_bundled_tui finds entry.js bundled in the package."""
|
||||
tui_dist = tmp_path / "hermes_cli" / "tui_dist"
|
||||
tui_dist.mkdir(parents=True)
|
||||
entry = tui_dist / "entry.js"
|
||||
entry.write_text("// bundled TUI", encoding="utf-8")
|
||||
|
||||
from hermes_cli.main import _find_bundled_tui
|
||||
result = _find_bundled_tui(hermes_cli_dir=tmp_path / "hermes_cli")
|
||||
assert result is not None
|
||||
assert result.name == "entry.js"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user