aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-node/tests/test_audit.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_audit.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_audit.py')
-rw-r--r--packages/meshbay-node/tests/test_audit.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/meshbay-node/tests/test_audit.py b/packages/meshbay-node/tests/test_audit.py
index b5b98b5..1a685ff 100644
--- a/packages/meshbay-node/tests/test_audit.py
+++ b/packages/meshbay-node/tests/test_audit.py
@@ -1,13 +1,13 @@
"""Tests for the node audit store (legal compliance IP/action logging)."""
import asyncio
-import inspect
import time
import pytest
from meshbay_node.audit import AuditStore
from meshbay_node.config import Config, HubConfig, KeystoreConfig, NodeConfig
from meshbay_node.daemon import NodeDaemon
+from node_source import daemon_class_source
@pytest.fixture
@@ -132,5 +132,5 @@ async def test_daemon_purges_the_audit_log(audit, tmp_path):
def test_daemon_starts_the_purge():
- source = inspect.getsource(NodeDaemon)
+ source = daemon_class_source()
assert "create_task(self._purge_audit_log())" in source