armi.settings.tests.test_settingsIO module

Testing the settingsIO.

class armi.settings.tests.test_settingsIO.SettingsFailureTests(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_settingsObjSetting()[source]
test_loadFromYamlFailsOnBadNames()[source]
test_invalidFile()[source]
class armi.settings.tests.test_settingsIO.SettingsReaderTests(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_basicSettingsReader()[source]
test_readFromFile()[source]
class armi.settings.tests.test_settingsIO.SettingsRenameTests(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.

testSettings = [<Setting testSetting1 value:None default:None>, <Setting testSetting2 value:None default:None>, <Setting testSetting3 value:None default:None>]
test_rename()[source]
test_collidingRenames()[source]
class armi.settings.tests.test_settingsIO.SettingsWriterTests(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_writeShort()[source]

Setting output as a sparse file.

test_writeMedium()[source]

Setting output as a sparse file that only includes defaults if they are user-specified.

test_writeFull()[source]

Setting output as a full, all defaults included file.

test_writeYaml()[source]
test_errorSettingsWriter()[source]
class armi.settings.tests.test_settingsIO.MockEntryPoint[source]

Bases: EntryPoint

name: Optional[str] = 'dummy'

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

settingsArgument: Optional[str] = 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.settings.tests.test_settingsIO.SettingArgsTests(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_commandLineSetting()[source]
test_cannotLoadSettingsAfterParsingCommandLineSetting()[source]