Skip to content

Commit

Permalink
fix: linting /cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
andoludo committed Aug 28, 2024
1 parent fbc40da commit d2903de
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/test_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 == []

0 comments on commit d2903de

Please sign in to comment.