oasislmf.cli.test

Classes

ModelValidationCmd

Checks the validity of a set of model data.

FmValidationCmd

Run FM acceptance tests from "oasisLMF/validation/*"

GenerateDummyModelFilesCmd

Eventually, the Parent class for all Oasis Computation Command

GenerateDummyOasisFilesCmd

Eventually, the Parent class for all Oasis Computation Command

GenerateLossesDummyModelCmd

Eventually, the Parent class for all Oasis Computation Command

TestModelCmd

Present sub-commands for creating test models

TestCmd

Test models and keys servers

Module Contents

class oasislmf.cli.test.ModelValidationCmd(*args, **kwargs)[source]

Bases: oasislmf.cli.command.OasisBaseCommand

Checks the validity of a set of model data.

add_args(parser)[source]

Adds arguments to the argument parser.

Parameters:

parser (ArgumentParser) – The argument parser object

action(args)[source]

Performs validity checks on model data csv files using ktools executables.

Parameters:

args (Namespace) – The arguments from the command line

class oasislmf.cli.test.FmValidationCmd(*args, **kwargs)[source]

Bases: oasislmf.cli.command.OasisComputationCommand

Run FM acceptance tests from “oasisLMF/validation/*

Example use: 1. Run all test cases: “oasisLMF/validation$ oasislmf test fm”

Stating oasislmf command - RunFmTest RUNNING: oasislmf.manager.interface Running: 4 Tests from ‘/home/sam/repos/core/oasisLMF/validation’ Test names: [‘insurance’, ‘insurance_step’, ‘reinsurance1’, ‘reinsurance2’]

  1. Run Directly from a acceptance test Directory: “oasisLMF/validation/reinsurance1$ oasislmf test fm”

    Stating oasislmf command - RunFmTest RUNNING: oasislmf.manager.interface

  2. Select test case sub-directory: “oasisLMF/validation$ oasislmf test fm –test-case-name reinsurance1”

    Stating oasislmf command - RunFmTest RUNNING: oasislmf.manager.interface

formatter_class[source]
computation_name = 'RunFmTest'[source]
class oasislmf.cli.test.GenerateDummyModelFilesCmd(*args, **kwargs)[source]

Bases: oasislmf.cli.command.OasisComputationCommand

Eventually, the Parent class for all Oasis Computation Command create the command line interface from parameter define in the associated computation step

formatter_class[source]
computation_name = 'GenerateDummyModelFiles'[source]
class oasislmf.cli.test.GenerateDummyOasisFilesCmd(*args, **kwargs)[source]

Bases: oasislmf.cli.command.OasisComputationCommand

Eventually, the Parent class for all Oasis Computation Command create the command line interface from parameter define in the associated computation step

formatter_class[source]
computation_name = 'GenerateDummyOasisFiles'[source]
class oasislmf.cli.test.GenerateLossesDummyModelCmd(*args, **kwargs)[source]

Bases: oasislmf.cli.command.OasisComputationCommand

Eventually, the Parent class for all Oasis Computation Command create the command line interface from parameter define in the associated computation step

formatter_class[source]
computation_name = 'GenerateLossesDummyModel'[source]
class oasislmf.cli.test.TestModelCmd(name=None, argv=None)[source]

Bases: argparsetree.BaseCommand

Present sub-commands for creating test models

sub_commands[source]
class oasislmf.cli.test.TestCmd(name=None, argv=None)[source]

Bases: argparsetree.BaseCommand

Test models and keys servers

sub_commands[source]