tests package
Submodules
tests.database module
RHEAS database functionality for testing suite.
synopsis: | Database functions for the RHEAS testing suite |
-
tests.database.
createDatabase
(dbname)[source]
Create temporary database for unit testing.
-
tests.database.
cultivars
(dbname)[source]
Set cultivar parameters for DSSAT unit tests.
-
tests.database.
dropDatabase
(dbname)[source]
Delete temporary database created for unit testing.
-
tests.database.
ingestTables
(dbname)[source]
Ingest datasets needed for the unit tests.
tests.testdatasets module
RHEAS dataset testing suite.
synopsis: | Unit tests for RHEAS dataset download |
-
class
tests.testdatasets.
testDatasets
(methodName='runTest')[source]
Bases: unittest.case.TestCase
-
setUp
()[source]
-
classmethod
setUpClass
()[source]
-
classmethod
tearDownClass
()[source]
-
testTable
()[source]
tests.testforecast module
RHEAS forecast testing suite.
synopsis: | Unit tests for RHEAS forecast module |
-
class
tests.testforecast.
testForecast
(methodName='runTest')[source]
Bases: unittest.case.TestCase
-
setUp
()[source]
Set parameters for forecast unit tests.
-
classmethod
setUpClass
()[source]
Create dummy database for testing.
-
tearDown
()[source]
Clean up data generated after each unit test.
-
classmethod
tearDownClass
()[source]
Delete testing database.
-
testEspDSSAT
()[source]
Test ESP forecast DSSAT simulation.
-
testEspVIC
()[source]
Test ESP forecast VIC simulation, with random initialization.
-
testEspVICwithAssimilation
()[source]
Test ESP forecast VIC simulation with data assimilation.
-
testEspVICwithPerturb
()[source]
Test ESP forecast VIC simulation, with initialization
from perturbed model simulations.
-
testIriVIC
()[source]
Test forecast VIC simulations using IRI forecast data.
tests.testnowcast module
RHEAS nowcast testing suite.
synopsis: | Unit tests for RHEAS nowcast module |
-
class
tests.testnowcast.
testNowcast
(methodName='runTest')[source]
Bases: unittest.case.TestCase
-
setUp
()[source]
Set parameters for nowcast unit tests.
-
classmethod
setUpClass
()[source]
Create dummy database for testing.
-
tearDown
()[source]
Clean up data generated after each unit test.
-
classmethod
tearDownClass
()[source]
Delete testing database.
-
testAssimilationVIC
()[source]
Test nowcast VIC simulation with data assimilation.
-
testDeterministicDSSAT
()[source]
Test deterministic nowcast DSSAT simulation.
-
testDeterministicVIC
()[source]
Test deterministic nowcast VIC simulation.
-
testEnsembleDSSAT
()[source]
Test ensemble nowcast DSSAT simulation.
-
testEnsembleVIC
()[source]
Test ensemble nowcast VIC simulation.
-
testMultiplePrecipVIC
()[source]
Test VIC simulation with multiple precipitation datasets.
-
testVICWithState
()[source]
Test saving and restarting VIC with state file.
Module contents
RHEAS testing package definition