From f6982b06a4c7128c88e6105d1013df8484d558b1 Mon Sep 17 00:00:00 2001 From: "Tristan F." Date: Mon, 13 Oct 2025 23:23:12 -0700 Subject: [PATCH 1/2] test(btb): drop useless pathloading --- test/BowTieBuilder/test_btb.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/test/BowTieBuilder/test_btb.py b/test/BowTieBuilder/test_btb.py index 8b7997692..44a39f1f7 100644 --- a/test/BowTieBuilder/test_btb.py +++ b/test/BowTieBuilder/test_btb.py @@ -1,19 +1,12 @@ import shutil -import sys from pathlib import Path - import pytest +from spras.btb import BowTieBuilder as BTB import spras.config.config as config config.init_from_file("config/config.yaml") -# TODO consider refactoring to simplify the import -# Modify the path because of the - in the directory -SPRAS_ROOT = Path(__file__).parent.parent.parent.absolute() -sys.path.append(str(Path(SPRAS_ROOT, 'docker-wrappers', 'BowTieBuilder'))) -from spras.btb import BowTieBuilder as BTB - TEST_DIR = Path('test', 'BowTieBuilder/') OUT_FILE_DEFAULT = Path(TEST_DIR, 'output', 'raw-pathway.txt') From 1f19209ec29e1e3f071f705b208cc22d6ee4f9bd Mon Sep 17 00:00:00 2001 From: "Tristan F." Date: Tue, 14 Oct 2025 06:23:24 +0000 Subject: [PATCH 2/2] style: fmt --- test/BowTieBuilder/test_btb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/BowTieBuilder/test_btb.py b/test/BowTieBuilder/test_btb.py index 44a39f1f7..60e894fe3 100644 --- a/test/BowTieBuilder/test_btb.py +++ b/test/BowTieBuilder/test_btb.py @@ -1,9 +1,10 @@ import shutil from pathlib import Path + import pytest -from spras.btb import BowTieBuilder as BTB import spras.config.config as config +from spras.btb import BowTieBuilder as BTB config.init_from_file("config/config.yaml")