Skip to content

Commit

Permalink
tests: add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mostaphaRoudsari committed May 28, 2023
1 parent 511e3e9 commit 30140e2
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/assets/revit_sample_model_wall_finish.hbjson

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions tests/extend_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import pathlib
from honeybee.model import Model


def test_model():
in_file = './tests/assets/revit_sample_model_wall_finish.hbjson'
out_folder = pathlib.Path('./tests/assets/temp')
out_folder.mkdir(parents=True, exist_ok=True)
model = Model.from_hbjson(in_file)
outf = model.to_idm(out_folder.as_posix(), name='revit_sample_model_wall_finish')
assert outf.exists()
12 changes: 12 additions & 0 deletions tests/writer_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import pathlib
from honeybee.model import Model
from honeybee_idaice.writer import model_to_idm


def test_model():
in_file = './tests/assets/revit_sample_model_wall_finish.hbjson'
out_folder = pathlib.Path('./tests/assets/temp')
out_folder.mkdir(parents=True, exist_ok=True)
model = Model.from_hbjson(in_file)
outf = model_to_idm(model, out_folder.as_posix(), name='revit_sample_model')
assert outf.exists()

0 comments on commit 30140e2

Please sign in to comment.