forked from ibpsa/project1-boptest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a9b552e
commit 32ddd79
Showing
15 changed files
with
2,417 additions
and
323 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+249 KB
testcases/multizone_office_complex_air/doc/images/BuildingGeometry.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+45.2 KB
testcases/multizone_office_complex_air/doc/images/ChillerPumpStage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2,623 changes: 2,333 additions & 290 deletions
2,623
testcases/multizone_office_complex_air/doc/index.html
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
This module runs tests for multizone_office_complex_air. To run these tests, testcase | ||
multizone_office_complex_air must already be deployed. | ||
""" | ||
|
||
import unittest | ||
import os | ||
import utilities | ||
|
||
class Run(unittest.TestCase, utilities.partialTestTimePeriod): | ||
'''Tests the example test case. | ||
''' | ||
|
||
def setUp(self): | ||
'''Setup for each test. | ||
''' | ||
|
||
self.name = 'multizone_office_complex_air' | ||
self.url = 'http://127.0.0.1:5000' | ||
self.points_check = ['hvac_reaChiWatSys_reaPChi_y', 'hvac_reaHotWatSys_reaPBoi_y', | ||
'hvac_reaChiWatSys_reaPPum_y','hvac_reaChiWatSys_reaPCooTow_y', | ||
'hvac_reaHotWatSys_reaPPum_y', | ||
'hvac_floor1_reaZonCor_TZon_y', 'hvac_floor1_reaZonNor_TZon_y', | ||
'hvac_floor2_reaZonEas_TZon_y','hvac_floor3_reaZonWes_TZon_y', | ||
'hvac_floor1_readAhu_TMix_y','hvac_floor2_readAhu_TMix_y','hvac_floor3_readAhu_TMix_y', | ||
'loaEPlus_weatherStation_reaWeaTDryBul_y', 'loaEPlus_weatherStation_reaWeaHGloHor_y'] | ||
|
||
def test_peak_heat_day(self): | ||
self.run_time_period('peak_heat_day') | ||
|
||
def test_peak_cool_day(self): | ||
self.run_time_period('peak_cool_day') | ||
|
||
def test_typical_heat_day(self): | ||
self.run_time_period('typical_heat_day') | ||
|
||
def test_typical_cool_day(self): | ||
self.run_time_period('typical_cool_day') | ||
|
||
def test_mix_day(self): | ||
self.run_time_period('mix_day') | ||
|
||
class API(unittest.TestCase, utilities.partialTestAPI): | ||
'''Tests the api for testcase. | ||
Actual test methods implemented in utilities.partialTestAPI. Set self | ||
attributes defined there for particular testcase in setUp method here. | ||
''' | ||
|
||
def setUp(self): | ||
'''Setup for testcase. | ||
''' | ||
|
||
self.name = 'multizone_office_complex_air' | ||
self.url = 'http://127.0.0.1:5000' | ||
self.step_ref = 3600 | ||
self.test_time_period = 'peak_heat_day' | ||
#<u_variable>_activate is meant to be 0 for the test_advance_false_overwrite API test | ||
self.input = {'hvac_floor1_TSupAirSet_activate': 0, | ||
'hvac_floor1_TSupAirSet_u': 273.15 + 22} | ||
self.measurement = 'hvac_reaHotWatSys_reaPBoi_y' | ||
self.forecast_point = 'EmissionsElectricPower' | ||
|
||
if __name__ == '__main__': | ||
utilities.run_tests(os.path.basename(__file__)) |