Skip to content

Commit

Permalink
Add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
terrancelu92 committed Aug 9, 2023
1 parent a9b552e commit 32ddd79
Show file tree
Hide file tree
Showing 15 changed files with 2,417 additions and 323 deletions.
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.
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 testcases/multizone_office_complex_air/doc/index.html

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions testing/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,19 @@ test_testcase2:
# Report test results
python report.py

test_multizone_office_complex_air:
# Build and deploy testcase image
cd .. && TESTCASE=multizone_office_complex_air docker-compose up -d
python sleep10.py
# Run testcase tests
# Python and checks
cd .. && python testing/test_multizone_office_complex_air.py
# Stop testcase container
cd .. && TESTCASE=multizone_office_complex_air docker-compose down
# Report test results
python report.py


test_parser:
make run_jm
make copy_to_jm ARGS=parsing
Expand Down
33 changes: 0 additions & 33 deletions testing/test_multizone_large_office_eplus.py

This file was deleted.

71 changes: 71 additions & 0 deletions testing/test_multizone_office_complex_air.py
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__))

0 comments on commit 32ddd79

Please sign in to comment.