Skip to content

Commit

Permalink
#5133 - Add a failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarrec committed Apr 25, 2024
1 parent 276859d commit 1f0d8cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/test/test_usability.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ def test_path():
"""Assert you can load a model with a str or a pathlib.Path without throwing."""
assert openstudio.model.Model.load("wrong.osm").empty()
assert openstudio.model.Model.load(Path("wrong.osm")).empty()

# And we still support toPath
assert openstudio.model.Model.load(openstudio.toPath("wrong.osm")).empty()

def test_json():
"""We can return jsoncpp objects to a native python dict."""
Expand Down

0 comments on commit 1f0d8cf

Please sign in to comment.