From 3f5efc025533af38d1a0567165fc4d3bb2b6411f Mon Sep 17 00:00:00 2001 From: Aimilia Dimitra Ktena Date: Fri, 7 Jun 2024 20:19:42 +0300 Subject: [PATCH] Fix test module paths to resolve import errors --- .../geophires_x_client_tests/test_geophires_input_parameters.py | 2 +- tests/geophires_x_tests/test_cylindrical_reservoir.py | 2 +- tests/geophires_x_tests/test_economics.py | 2 +- tests/geophires_x_tests/test_reservoir.py | 2 +- tests/test_base_test_case.py | 2 +- tests/test_parameter.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/geophires_x_client_tests/test_geophires_input_parameters.py b/tests/geophires_x_client_tests/test_geophires_input_parameters.py index ec807129..dc8f926a 100644 --- a/tests/geophires_x_client_tests/test_geophires_input_parameters.py +++ b/tests/geophires_x_client_tests/test_geophires_input_parameters.py @@ -2,8 +2,8 @@ import uuid from pathlib import Path -from base_test_case import BaseTestCase from geophires_x_client import GeophiresInputParameters +from tests.base_test_case import BaseTestCase class GeophiresInputParametersTestCase(BaseTestCase): diff --git a/tests/geophires_x_tests/test_cylindrical_reservoir.py b/tests/geophires_x_tests/test_cylindrical_reservoir.py index 9a999d46..2e17aad5 100644 --- a/tests/geophires_x_tests/test_cylindrical_reservoir.py +++ b/tests/geophires_x_tests/test_cylindrical_reservoir.py @@ -2,7 +2,7 @@ import unittest from pathlib import Path -from base_test_case import BaseTestCase +from tests.base_test_case import BaseTestCase # Ruff disabled because imports are order-dependent # ruff: noqa: I001 diff --git a/tests/geophires_x_tests/test_economics.py b/tests/geophires_x_tests/test_economics.py index 6439de1f..d6db574e 100644 --- a/tests/geophires_x_tests/test_economics.py +++ b/tests/geophires_x_tests/test_economics.py @@ -1,5 +1,5 @@ -from base_test_case import BaseTestCase from geophires_x.Economics import CalculateFinancialPerformance +from tests.base_test_case import BaseTestCase class EconomicsTestCase(BaseTestCase): diff --git a/tests/geophires_x_tests/test_reservoir.py b/tests/geophires_x_tests/test_reservoir.py index 5a50543f..119e73f6 100644 --- a/tests/geophires_x_tests/test_reservoir.py +++ b/tests/geophires_x_tests/test_reservoir.py @@ -4,10 +4,10 @@ from pint.facets.plain import PlainQuantity -from base_test_case import BaseTestCase from geophires_x.GeoPHIRESUtils import static_pressure_MPa from geophires_x.Model import Model from geophires_x.Reservoir import Reservoir +from tests.base_test_case import BaseTestCase class ReservoirTestCase(BaseTestCase): diff --git a/tests/test_base_test_case.py b/tests/test_base_test_case.py index 77aaa1b4..2b89990e 100644 --- a/tests/test_base_test_case.py +++ b/tests/test_base_test_case.py @@ -1,6 +1,6 @@ import unittest -from base_test_case import BaseTestCase +from tests.base_test_case import BaseTestCase class TestBaseTestCase(BaseTestCase): diff --git a/tests/test_parameter.py b/tests/test_parameter.py index 6c765ff9..33c8f333 100644 --- a/tests/test_parameter.py +++ b/tests/test_parameter.py @@ -3,7 +3,6 @@ import unittest from pathlib import Path -from base_test_case import BaseTestCase from geophires_x.Model import Model from geophires_x.Parameter import OutputParameter from geophires_x.Parameter import Parameter @@ -14,6 +13,7 @@ from geophires_x.Units import LengthUnit from geophires_x.Units import PressureUnit from geophires_x.Units import Units +from tests.base_test_case import BaseTestCase class ParameterTestCase(BaseTestCase):