From ef942b93d1e9bfc28bf607dfaf501cc7d9685e7b Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Thu, 24 Sep 2026 17:42:10 +0200 Subject: 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 --- packages/meshbay-node/tests/test_audit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/meshbay-node/tests/test_audit.py') 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 -- cgit v1.2.3