Assert you can load a model with a str or a pathlib.Path without throwing.
()
| 31 | |
| 32 | |
| 33 | def test_path(): |
| 34 | """Assert you can load a model with a str or a pathlib.Path without throwing.""" |
| 35 | assert openstudio.model.Model.load("wrong.osm").empty() |
| 36 | assert openstudio.model.Model.load(Path("wrong.osm")).empty() |
| 37 | # And we still support toPath |
| 38 | assert openstudio.model.Model.load(openstudio.toPath("wrong.osm")).empty() |
| 39 | |
| 40 | |
| 41 | def test_json(): |