metasyn.testutils

Module for testing the functionality of distributions and registries.

The testutils module provides a set of utilities for testing the functionality and internal consistency of individual distributions and registries.

Functions

check_distribution_registry(registry_name)

Check internal consistency of a distribution registry.

check_fitter(fitter, privacy, provenance[, ...])

Check whether the distributions in the package can be validated positively.

create_input_toml(file_name)

Create input toml with all distribution in builtin.

create_md_report(file_name, out_md_file)

Create markdown report from GMF file.

metasyn.testutils.check_distribution_registry(registry_name)

Check internal consistency of a distribution registry.

Parameters:

registry_name (str) – Name of the registry to be tested.

metasyn.testutils.check_fitter(fitter, privacy, provenance, test_empty=True)

Check whether the distributions in the package can be validated positively.

Parameters:
  • distribution – Distribution to validate to check whether it behaves as expected.

  • privacy (BasePrivacy) – Level/type of privacy the distribution adheres to.

  • provenance (str) – Which registry/plugin/package provides the distribution.

  • test_empty (bool) – If this is set to true, this will also check empty series and if the distribution can fit them. Otherwise, ignore testing the distribution on empty series.

  • fitter (type[BaseFitter])

metasyn.testutils.create_input_toml(file_name)

Create input toml with all distribution in builtin.

metasyn.testutils.create_md_report(file_name, out_md_file)

Create markdown report from GMF file.