aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-node/tests/test_transport_wire_parity.py
diff options
context:
space:
mode:
authorChristophe Besson <cbesson@gmail.com>2026-09-24 17:42:10 +0200
committerChristophe Besson <cbesson@gmail.com>2026-09-24 17:58:08 +0200
commitef942b93d1e9bfc28bf607dfaf501cc7d9685e7b (patch)
tree644ffc1884d506036a279f7f19a2d302f45d9064 /packages/meshbay-node/tests/test_transport_wire_parity.py
parentdf6fafa76b0eec167fa1fa18a40632c2e95181ff (diff)
downloadmeshbay-ef942b93d1e9bfc28bf607dfaf501cc7d9685e7b.tar.gz
test(node): read the daemon's source wherever it is split
Tests that read daemon.py now take their text from node_source (daemon.py, NodeDaemon's bases, the cli package once it exists). The CLI tests that sliced main() run the CLI instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-node/tests/test_transport_wire_parity.py')
-rw-r--r--packages/meshbay-node/tests/test_transport_wire_parity.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/meshbay-node/tests/test_transport_wire_parity.py b/packages/meshbay-node/tests/test_transport_wire_parity.py
index 3250f7f..c7008c8 100644
--- a/packages/meshbay-node/tests/test_transport_wire_parity.py
+++ b/packages/meshbay-node/tests/test_transport_wire_parity.py
@@ -24,7 +24,7 @@ from meshbay_node.indexer import DirectoryIndexer
from meshbay_node.transport import quic_server
from meshbay_node.transport.webrtc import disk
from meshbay_node.transport.wire import index_sync_message
-from node_source import webrtc_source
+from node_source import daemon_source, webrtc_source
from conftest import one_root
@@ -88,9 +88,7 @@ def test_the_daemon_does_not_build_an_index_message_itself():
site for an index message, and the one that would have kept sending cleartext
while the other two were sealed.
"""
- from meshbay_node import daemon
-
- source = inspect.getsource(daemon)
+ source = daemon_source()
assert "index_delta_message" in source and "index_sync_message" in source
assert '"type": MNP.INDEX_DELTA' not in source, (
"the daemon builds index_delta by hand again")