diff --git a/tests/test_element.py b/tests/test_element.py index 4bd2bbb..d18f958 100644 --- a/tests/test_element.py +++ b/tests/test_element.py @@ -5,13 +5,16 @@ def test_validate_schema() -> None: for name in ["boiler", "valve", "window"]: - boiler = Path( - f"/home/aan/Documents/trano/trano/models/elements/models/{name}.yaml" + + element = ( + Path(__file__) + .parents[1] + .joinpath("trano", "models", "elements", "models", f"{name}.yaml") ) data_model_path = ( Path(__file__) .parents[1] .joinpath("trano", "models", "elements", "element.yaml") ) - report = validate_file(boiler, data_model_path, "Building") + report = validate_file(element, data_model_path, "Building") assert report.results == []