diff --git a/tests/main/driver/test_analytic_init.py b/tests/main/driver/test_analytic_init.py index 8877fc73..d13c8af2 100644 --- a/tests/main/driver/test_analytic_init.py +++ b/tests/main/driver/test_analytic_init.py @@ -7,6 +7,8 @@ import pace.driver +DIR = os.path.dirname(os.path.abspath(__file__)) + TESTED_CONFIGS: List[str] = [ "../../../driver/examples/configs/analytic_test.yaml", ] @@ -20,7 +22,7 @@ ) def test_analytic_init_config(tested_configs: List[str]): for config_file in tested_configs: - with open(os.path.abspath(config_file), "r") as f: + with open(os.path.join(DIR, config_file), "r") as f: config = yaml.safe_load(f) driver_config = pace.driver.DriverConfig.from_dict(config) assert driver_config.initialization.type == "analytic"