Skip to content

Commit

Permalink
Merge pull request #1892 from NREL/buildreshpxml_docs_version
Browse files Browse the repository at this point in the history
Fix BuildResidentialHPXML docs links
  • Loading branch information
shorowit authored Nov 27, 2024
2 parents 1066943 + d968043 commit 09fb00c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BuildResidentialHPXML/measure.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<schema_version>3.1</schema_version>
<name>build_residential_hpxml</name>
<uid>a13a8983-2b01-4930-8af2-42030b6e4233</uid>
<version_id>a612d193-7718-4eb6-a3b5-4c30a1e658df</version_id>
<version_modified>2024-11-27T02:33:38Z</version_modified>
<version_id>c768997a-a50d-422b-8942-6c3249d0c01e</version_id>
<version_modified>2024-11-27T21:21:13Z</version_modified>
<xml_checksum>2C38F48B</xml_checksum>
<class_name>BuildResidentialHPXML</class_name>
<display_name>HPXML Builder</display_name>
Expand Down Expand Up @@ -7562,7 +7562,7 @@
<filename>test_build_residential_hpxml.rb</filename>
<filetype>rb</filetype>
<usage_type>test</usage_type>
<checksum>71348C9A</checksum>
<checksum>CCBB49E7</checksum>
</file>
</files>
</measure>
16 changes: 16 additions & 0 deletions BuildResidentialHPXML/tests/test_build_residential_hpxml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,22 @@ def test_workflows
assert_equal(31, hvac_control.seasons_cooling_end_day)
end

def test_version
found_match = false
measure_xml_path = File.join(File.dirname(__FILE__), '..', 'measure.xml')
File.readlines(measure_xml_path).each do |xml_line|
next unless xml_line.include? '<description>'
next unless xml_line.include? 'https://openstudio-hpxml.readthedocs.io'

found_match = true
if not xml_line.include? Version::OS_HPXML_Version
puts "ERROR: Found incorrect OS-HPXML version. Manually edit the BuildResidentialHPXML/measure.rb and run 'openstudio tasks.rb update_measures' to force the measure.xml to be regenerated."
end
assert(xml_line.include? Version::OS_HPXML_Version)
end
assert(found_match)
end

private

def _set_measure_argument_values(hpxml_file, args)
Expand Down

0 comments on commit 09fb00c

Please sign in to comment.