ladybug-tools / honeybee-openstudio-gem

:honeybee: :gem: Library and measures for translating between Honeybee JSON schema and OpenStudio Model schema (OSM)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add some assertion checks to the tests

chriswmackey opened this issue · comments

Most of our tests right now consist of parsing in the sample JSONs just to make sure that they pass. I know from comments like this one that we also have plans to implement some assertion checks to verify that the properties of the OpenStudio objects have been set to the values specified in the JSON (and that the defaults have been set correctly). Adding checks like this on larger objects (like Models) will likely be unnecessarily time consuming but we should at least add some checks like this for smaller objects (materials, schedules, ideal air systems). I'm sure that the process is likely to bring some typos/bugs to the surface if my past experience is any indication.

I think we can close this out for now.