From f47021eeb058cfefb5d5395fdd4fe7cfeb688e28 Mon Sep 17 00:00:00 2001 From: Asti1982 <65121113+Asti1982@users.noreply.github.com> Date: Tue, 12 May 2026 22:55:29 +0200 Subject: [PATCH] fix: repair node health test import --- tools/node-health-cli/tests/test_node_health.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/node-health-cli/tests/test_node_health.py b/tools/node-health-cli/tests/test_node_health.py index da9999fba..21597c307 100644 --- a/tools/node-health-cli/tests/test_node_health.py +++ b/tools/node-health-cli/tests/test_node_health.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: MIT """ Tests for RustChain Node Health Monitor CLI """ @@ -8,10 +9,10 @@ from io import StringIO from unittest.mock import patch, MagicMock from urllib.error import URLError, HTTPError +from pathlib import Path import sys -import os -sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) +sys.path.insert(0, str(Path(__file__).resolve().parents[1])) from node_health import ( HealthStatus, EpochStatus, ReachabilityStatus, CheckResult,