From e07a7c95335ed0854c1e9f8fd1ed1c2f160de6b2 Mon Sep 17 00:00:00 2001 From: SAY-5 Date: Mon, 11 May 2026 23:59:55 -0700 Subject: [PATCH] fix(tests): use relative path in test_data_hyper_cleaning (fixes #28) --- examples/data_hyper_cleaning/test_data_hyper_cleaning.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/examples/data_hyper_cleaning/test_data_hyper_cleaning.py b/examples/data_hyper_cleaning/test_data_hyper_cleaning.py index c40e7b9..3eeadb1 100644 --- a/examples/data_hyper_cleaning/test_data_hyper_cleaning.py +++ b/examples/data_hyper_cleaning/test_data_hyper_cleaning.py @@ -1,7 +1,10 @@ +import os import pytest import subprocess from unittest.mock import patch +SCRIPT_PATH = os.path.join(os.path.dirname(__file__), "data_hyper_cleaning.py") + gm_oplist = ( ["NGD"], ["DI", "NGD"], @@ -39,7 +42,7 @@ def test_combination_dynamic_na_op(gm_op, na_op): command = [ "python", - "/home/runner/work/BOAT/BOAT/examples/data_hyper_cleaning/data_hyper_cleaning.py", + SCRIPT_PATH, "--gm_op", ",".join(gm_op), "--na_op", @@ -67,7 +70,7 @@ def test_combination_dynamic_na_op(gm_op, na_op): def test_combination_dynamic_na_op_dm(gm_op, na_op): command = [ "python", - "/home/runner/work/BOAT/BOAT/examples/data_hyper_cleaning/data_hyper_cleaning.py", + SCRIPT_PATH, "--gm_op", ",".join(gm_op), "--na_op", @@ -88,7 +91,7 @@ def test_combination_dynamic_na_op_dm(gm_op, na_op): def test_fo_ol_method(fo_ol_method): command = [ "python", - "/home/runner/work/BOAT/BOAT/examples/data_hyper_cleaning/data_hyper_cleaning.py", + SCRIPT_PATH, "--fo_op", fo_ol_method[0], ]