memote.suite.collect

Collect results for reporting model quality.

Module Contents

Classes

ResultCollectionPlugin Provide functionality for complex test result collection.
memote.suite.collect.LOGGER[source]
class memote.suite.collect.ResultCollectionPlugin(model, sbml_version=None, experimental_config=None, exclusive=None, skip=None, **kwargs)[source]

Bases: object

Provide functionality for complex test result collection.

The plugin exposes the fixture store which can be used in test functions to store values in a dictionary. The dictionary is namespaced to the module so within a module the same keys should not be re-used (unless intended).

_param[source]
pytest_generate_tests(self, metafunc)[source]

Parametrize marked functions at runtime.

pytest_runtest_call(self, item)[source]

Either run a test exclusively or skip it.

pytest_runtest_teardown(self, item)[source]

Collect the annotation from each test case and store it.

pytest_report_teststatus(self, report)[source]

Log pytest results for each test.

The categories are passed, failed, error, skipped and marked to fail.

Parameters:
report : TestReport

A test report object from pytest with test case result.

model(self)[source]

Provide each test case with a pristine model.

sbml_version(self)[source]

Provide SBML level, version, and FBC use.

pytest_configure(self, config)[source]

Register custom markers at runtime.