Skip to content

Commit

Permalink
Fixes to test_analytic_init.py to run locally and in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fmalatino committed Dec 6, 2023
1 parent f711f23 commit c2eb731
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/main/driver/test_analytic_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
Expand All @@ -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"

0 comments on commit c2eb731

Please sign in to comment.