memote.suite.collect module

Collect results for reporting model quality.

class memote.suite.collect.ResultCollectionPlugin(model, repository=None, branch=None, commit=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).

model(read_only_model)[source]

Provide a pristine model for a test unit.

read_only_model()[source]

Provide the model for the complete test session.

results

Return the test results as a nested dictionary.

store(request)[source]

Expose a dict to store values on.