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.

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.

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.

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.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_toTwoTuple()[source]
test_cleanArgs()[source]
test_reportsEntryPointBasics()[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]