armi.cli.tests.test_runEntryPoint module

Test for run cli entry point.

armi.cli.tests.test_runEntryPoint.buildTestDB(fileName, numNodes=1, numCycles=1)[source]

This function builds a (super) simple test DB.

Notes

This needs to be run inside a temp directory.

Parameters:
  • fileName (str) – The file name (not path) we want for the ARMI test DB.

  • numNodes (int, optional) – The number of nodes we want in the DB, default 1.

  • numCycles (int, optional) – The number of cycles we want in the DB, default 1.

Returns:

Database file name.

Return type:

str

class armi.cli.tests.test_runEntryPoint.TestInitializationEntryPoints(methodName='runTest')[source]

Bases: TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_entryPointInitialization()[source]

Tests the initialization of all subclasses of EntryPoint.

Test Case: Test initialization of many basic CLIs. T_ARMI_CLI_GEN0
signature: test_entryPointInitialization
requirements: R_ARMI_CLI_GEN
class armi.cli.tests.test_runEntryPoint.TestCheckInputEntryPoint(methodName='runTest')[source]

Bases: TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_checkInputEntryPointBasics()[source]
test_checkInputEntryPointInvoke()[source]

Test the “check inputs” entry point.

Test Case: A working CLI child class, to validate inputs. T_ARMI_CLI_GEN1
signature: test_checkInputEntryPointInvoke
requirements: R_ARMI_CLI_GEN
class armi.cli.tests.test_runEntryPoint.TestCloneArmiRunCommandBatch(methodName='runTest')[source]

Bases: TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_cloneArmiRunCommandBatchBasics()[source]
test_cloneArmiRunCommandBatchInvokeShort()[source]
test_cloneArmiRunCommandBatchInvokeMedium()[source]

Test the “clone armi run” batch entry point, on medium detail.

Test Case: A working CLI child class, to clone a run. T_ARMI_CLI_GEN2
signature: test_cloneArmiRunCommandBatchInvokeMedium
requirements: R_ARMI_CLI_GEN
class armi.cli.tests.test_runEntryPoint.TestCloneSuiteCommand(methodName='runTest')[source]

Bases: TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_cloneSuiteCommandBasics()[source]
class armi.cli.tests.test_runEntryPoint.TestCompareCases(methodName='runTest')[source]

Bases: TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_compareCasesBasics()[source]
class armi.cli.tests.test_runEntryPoint.TestCompareSuites(methodName='runTest')[source]

Bases: TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_compareSuitesBasics()[source]
class armi.cli.tests.test_runEntryPoint.TestExpandBlueprints(methodName='runTest')[source]

Bases: TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_expandBlueprintsBasics()[source]
class armi.cli.tests.test_runEntryPoint.TestExtractInputs(methodName='runTest')[source]

Bases: TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_extractInputsBasics()[source]
class armi.cli.tests.test_runEntryPoint.TestInjectInputs(methodName='runTest')[source]

Bases: TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_injectInputsBasics()[source]
test_injectInputsInvokeIgnore()[source]
test_injectInputsInvokeNoData()[source]
class armi.cli.tests.test_runEntryPoint.TestMigrateInputs(methodName='runTest')[source]

Bases: TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_migrateInputsBasics()[source]
class armi.cli.tests.test_runEntryPoint.TestModifyCaseSettingsCommand(methodName='runTest')[source]

Bases: TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_modifyCaseSettingsCommandBasics()[source]
test_modifyCaseSettingsCommandInvoke()[source]
class armi.cli.tests.test_runEntryPoint.MockFakeReportsEntryPoint[source]

Bases: ReportsEntryPoint

name: str | None = 'MockFakeReport'

The <command-name> that is used to call the command from the command line

invoke()[source]
settingsArgument: str | None = None

One of {‘optional’, ‘required’, None}, or unspecified. Specifies whether a settings file argument is to be added to the command’s argument parser. If settingsArgument == ‘required’, then a settings file is a required positional argument. If settingsArgument == ‘optional’, then it is an optional positional argument. Finally, if settingsArgument is None, then no settings file argument is added.

class armi.cli.tests.test_runEntryPoint.TestReportsEntryPoint(methodName='runTest')[source]

Bases: TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_cleanArgs()[source]
class armi.cli.tests.test_runEntryPoint.TestCompareIsotxsLibsEntryPoint(methodName='runTest')[source]

Bases: TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_compareIsotxsLibsBasics()[source]
class armi.cli.tests.test_runEntryPoint.TestRunEntryPoint(methodName='runTest')[source]

Bases: TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_runEntryPointBasics()[source]
test_runCommandHelp()[source]

Ensure main entry point with no args completes.

test_executeCommand()[source]

Use executeCommand to call run.

But we expect it to fail because we provide a fictional settings YAML.

class armi.cli.tests.test_runEntryPoint.TestRunSuiteCommand(methodName='runTest')[source]

Bases: TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_runSuiteCommandBasics()[source]
class armi.cli.tests.test_runEntryPoint.TestVisFileEntryPointCommand(methodName='runTest')[source]

Bases: TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_visFileEntryPointBasics()[source]