armi.tests package
General framework-wide testing functions and files.
This package contains some input files that can be used across a wide variety of unit tests in other lower-level subpackages.
- class armi.tests.Fixture(refDirectory, targets, dependencies, function)[source]
Bases:
objectFixture for presenting a consistent data source for testing.
A Fixture is a class that wraps a function which generates resources needed by one or more tests that does not need to be updated every time tests are run.
Do not use this class directly, instead use the
@fixtureand@requires_fixturedecorators.
- armi.tests.fixture(refDirectory=None, targets=None, dependencies=None)[source]
Decorator to run function based on targets and dependencies similar to GNU Make.
- Parameters:
refDirectory (str) – String reference directory for all targets/dependencies. This makes it possible to simplify file paths. If
os.path.abspath(<path>) == <path>, then refDirectory is not used.targets (iterable(str)) – List of targets that the function generates.
dependencies (iterable(str)) – List of dependencies that the
targetsrequire.
- armi.tests.requires_fixture(fixtureFunction)[source]
Decorator to require a fixture to have been completed.
- Parameters:
fixtureFunction (function without any parameters) – Fixture function is a function that has been decorated with fixture and is called prior to running the decorated function.
Notes
This cannot be used on classes.
Submodules
- armi.tests.test_apps module
TestPlugin1TestPlugin2TestPlugin3TestPlugin4TestAppsTestApps.test_getParamRenames()TestApps.test_registerPluginFlags()TestApps.test_getParamRenamesInvalids()TestApps.test_version()TestApps.test_getSettings()TestApps.test_splashText()TestApps.test_splashTextDifferentApp()TestApps.test_isStableReleaseVersion()TestApps.test_disableFutureConfigures()
TestArmiHighLevel
- armi.tests.test_armiTestHelper module
- armi.tests.test_cartesian module
- armi.tests.test_context module
- armi.tests.test_interfaces module
DummyInterfaceTestCodeInterfaceTestTightCouplerTestTightCoupler.test_couplerActive()TestTightCoupler.test_storePreviousIterationValue()TestTightCoupler.test_storePreviousIterationValueException()TestTightCoupler.test_isConvergedValueError()TestTightCoupler.test_isConverged()TestTightCoupler.test_isConvergedRuntimeError()TestTightCoupler.test_getListDimension()
- armi.tests.test_lwrInputs module
- armi.tests.test_mpiActions module
MockMpiCommMockMpiActionTestMpiIterTestMpiIter.test_parallel()TestMpiIter.test_serialGather()TestMpiIter.test_mpiIter()TestMpiIter.test_perfectBalancing()TestMpiIter.test_excessProcesses()TestMpiIter.test_typicalBalancing()TestMpiIter.test_runActionsDistributionAction()TestMpiIter.test_runBatchedActions()TestMpiIter.test_runBatchedActionsOverload()TestMpiIter.test_runActionsDistributeStateAction()TestMpiIter.test_runActionsDistStateActionParallel()TestMpiIter.test_invokeAsMaster()
TestQueueActions
- armi.tests.test_mpiFeatures module
- armi.tests.test_mpiParameters module
- armi.tests.test_plugins module
- armi.tests.test_runLog module
TestRunLogTestRunLog.test_setVerbosityFromInteger()TestRunLog.test_setVerbosityFromString()TestRunLog.test_verbosityOutOfRange()TestRunLog.test_invalidSetVerbosityByString()TestRunLog.test_parentRunLogging()TestRunLog.test_getWhiteSpace()TestRunLog.test_warningReport()TestRunLog.test_warningReportInvalid()TestRunLog.test_closeLogging()TestRunLog.test_setVerbosity()TestRunLog.test_setVerbosityBeforeStartLog()TestRunLog.test_callingStartLogMultipleTimes()TestRunLog.test_deduplicationFilter()TestRunLog.test_concatenateLogs()TestRunLog.test_createLogDir()TestRunLog.test_handlerType()
TestRunLogEnvEditsTestRunLoggerTestRunLogMpiLogConcat
- armi.tests.test_runLogMpi module
- armi.tests.test_symmetry module
- armi.tests.test_tests module
- armi.tests.test_user_plugins module
UserPluginFlagsUserPluginFlags2UserPluginFlags3UserPluginBadDefinesSettingsUserPluginBadDefineParameterRenamesUserPluginOnProcessCoreLoadingUpInterfaceUserPluginWithInterfaceTestUserPluginsTestUserPlugins.test_userPluginsFlags()TestUserPlugins.test_validateUserPluginLimitations()TestUserPlugins.test_registerUserPlugins()TestUserPlugins.test_registerUserPluginsAbsPath()TestUserPlugins.test_registerUserPluginsFromSettings()TestUserPlugins.test_userPluginOnProcessCoreLoading()TestUserPlugins.test_userPluginWithInterfaces()TestUserPlugins.test_registerRepeatedUserPlugins()