tests.test_examples module

Test the instantiation, data loading / data generation and the inference for the example models in the examples folder.

Examples()[source]

Provides the list of examples to the parametrized test

get_example_name(example)[source]

Extract the name of the example from the tuple to have nice names in the test report and be able to select the test using -k

Parameters:

example – Tuple of the form (module_location, className, dataFileName) or (module_location, className)

Returns:

name of the example

Return type:

str

test_examples(example, inference_type)[source]

Test the inference for the example models.

Parameters:

example (Tuple[str, str, int]) – The example which should be tested. The tuple contains the module location, the class name and the number of walkers.

Returns:

test_model_requirements(example)[source]

Perform a simple sanity check on the model.

Parameters:

example – Tuple of the form (module_location, className, dataFileName) or (module_location, className)