import pytest rclpy = pytest.importorskip('rclpy') def test_the_node_constructs_without_a_token_and_does_not_serve(monkeypatch): """Declaring a parameter twice raises at construction, and nothing else exercises the node.""" monkeypatch.delenv('ROBOT_MCP_TOKEN', raising=False) from hermes_mcp.mcp_node import McpNode rclpy.init() try: node = McpNode() assert node.activity is None # no token: not serving, no heartbeat node.destroy_node() finally: rclpy.shutdown()