simulations.tests package¶
Submodules¶
simulations.tests.test_modules module¶
Created on Thu Apr 1 14:36:02 2021
@author: gabrielsoto
- class simulations.tests.test_modules.TestPySAMModules(methodName='runTest')[source]¶
Bases:
unittest.case.TestCase
Unit tests for PySAM module setup
This testing suite is meant to test the methods in parent class of all modules, that being GenericSSCModule. Only non-abstract methods will be tested. All child classes will share common methods and attributes which will be tested here. Dispatch is NOT tested here.
For each individual class, there will be bespoke test classes.
- test_log_SSC_arrays()[source]¶
Testing the log_SSC_arrays method
Here we test both instances of the method call, during simulations and during the last simulation segment.
- test_run_sim()[source]¶
Testing run_sim for all modules
NOTE: this doesn’t test for accuracy of individual results, just that the processes run in the correct order and output something.
simulations.tests.test_nuctes module¶
Created on Thu Apr 1 14:36:02 2021
@author: gabrielsoto
- class simulations.tests.test_nuctes.TestNuclearTES(methodName='runTest')[source]¶
Bases:
unittest.case.TestCase
Unit tests for Nuclear TES module
This testing suite is meant to test the nuclear TES module meant to represent Model 1 of the NE-2 project. This models an LFR plant supplying power to a power block with thermal energy storage (TES) in the form of molten salt tanks.
simulations.tests.test_nuctes_scenarios module¶
Created on Mon Mar 21 14:39:17 2022
@author: gabrielsoto
- class simulations.tests.test_nuctes_scenarios.TestNuclearTESScenarios(methodName='runTest')[source]¶
Bases:
unittest.case.TestCase
Unit tests for Nuclear TES module
This testing suite is meant to test the nuclear TES module meant to represent Model 1 of the NE-2 project. This models an LFR plant supplying power to a power block with thermal energy storage (TES) in the form of molten salt tanks.
simulations.tests.test_util module¶
Created on Fri Apr 2 14:19:23 2021
@author: gabrielsoto