diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-09-25 01:17:32 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-09-25 01:17:32 +0200 |
| commit | 320620a18399eb43c4d9056e9fe4c3ffac8fcfd4 (patch) | |
| tree | a7eb9f0c0c3428fcb20a245d2a5b2b828a8a1a8e /packages/meshbay-hub/tests/test_helloworld_proves_the_plugin_claim.py | |
| parent | 387138410532daad174ed602fd03f4f979cd3d81 (diff) | |
| download | meshbay-320620a18399eb43c4d9056e9fe4c3ffac8fcfd4.tar.gz | |
test(node): read ops wherever it is split
The tests that read ops.py for an absence (fastapi, a TOML path without
as_posix, the reference app's name) and the one counting operations by
module now take every file of ops.py or the ops package.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-hub/tests/test_helloworld_proves_the_plugin_claim.py')
| -rw-r--r-- | packages/meshbay-hub/tests/test_helloworld_proves_the_plugin_claim.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/meshbay-hub/tests/test_helloworld_proves_the_plugin_claim.py b/packages/meshbay-hub/tests/test_helloworld_proves_the_plugin_claim.py index 7fc9d8e..71a0ea8 100644 --- a/packages/meshbay-hub/tests/test_helloworld_proves_the_plugin_claim.py +++ b/packages/meshbay-hub/tests/test_helloworld_proves_the_plugin_claim.py @@ -35,8 +35,6 @@ import node_tree import pytest STATIC = Path(__file__).resolve().parents[1] / "src" / "meshbay_hub" / "static" -NODE_SRC = (Path(__file__).resolve().parents[2] / "meshbay-node" / "src" - / "meshbay_node") APP = STATIC / "helloworld-app.js" SETTINGS = STATIC / "helloworld-app-settings.js" @@ -69,14 +67,14 @@ def test_no_shared_client_file_mentions_it(name): @pytest.mark.parametrize("name", [ - "ops.py", "roster.py", "config.py", "roots.py", + "ops", "roster", "config", "roots", ]) def test_no_shared_node_module_mentions_it(name): """ Its directories are stored by `ops.set_app_directories`, which keys the row by whatever the app is called. Nothing on the node knows what it is. """ - source = (NODE_SRC / name).read_text(encoding="utf-8") + source = node_tree.module_source(name) assert "helloworld" not in source.lower(), ( f"{name} names the reference app; the generic path was supposed to " f"cover it") |