pyamr.tests package

Submodules

pyamr.tests.test_manual module

Running only one test:

​​pytest​​ ​​-v​​ ​​test_manual.py::test_dri_cddep

Functions:

fixture()

This ...

fixture1()

This ...

fixture3()

fixture4()

fixture5()

fixture_acsi_lancet_test()

fixture_dri_cddep_test()

fixture_index_mari()

func(x)

test_acsi_lancet(fixture_acsi_lancet_test)

Note

There is a known issue in which the values computed

test_answer()

PyTest sample test :return:

test_asai_class(fixture4)

test_asai_error_missing_column(fixture4, ...)

test_asai_error_weights_not_valid(fixture4)

test_asai_error_weights_wcolumn_not_valid(...)

test_asai_warn_threshold_double_defined(fixture4)

test_asai_warn_threshold_not_defined(fixture4)

test_asai_weights_frequency(fixture4)

test_asai_weights_from_column(fixture4)

test_asai_weights_uniform(fixture4)

test_dri_cddep(fixture_dri_cddep_test)

Validate the output using CDDEP data.

test_mari_class(fixture5)

test_mari_class_temporal_iti_period_is_integer_fails(...)

test_mari_class_temporal_oti(fixture5)

test_sari_class_overall(fixture3)

test_sari_class_timeseries(fixture3)

test_sari_empty_dataframe()

test_sari_method_empty(fixture3)

test_sari_strategy(fixture, strategy)

timeseries()

pyamr.tests.test_manual.fixture()[source]

This …

pyamr.tests.test_manual.fixture1()[source]

This …

pyamr.tests.test_manual.fixture3()[source]
pyamr.tests.test_manual.fixture4()[source]
pyamr.tests.test_manual.fixture5()[source]
pyamr.tests.test_manual.fixture_acsi_lancet_test()[source]
pyamr.tests.test_manual.fixture_dri_cddep_test()[source]
pyamr.tests.test_manual.fixture_index_mari()[source]
pyamr.tests.test_manual.func(x)[source]
pyamr.tests.test_manual.test_acsi_lancet(fixture_acsi_lancet_test)[source]

Note

There is a known issue in which the values computed for those rows in which the contingency matrix contained a 0 is not appropriate.

pyamr.tests.test_manual.test_answer()[source]

PyTest sample test :return:

pyamr.tests.test_manual.test_asai_class(fixture4)[source]
pyamr.tests.test_manual.test_asai_error_missing_column(fixture4, columns, kwargs)[source]
pyamr.tests.test_manual.test_asai_error_weights_not_valid(fixture4)[source]
pyamr.tests.test_manual.test_asai_error_weights_wcolumn_not_valid(fixture4, column)[source]
pyamr.tests.test_manual.test_asai_warn_threshold_double_defined(fixture4)[source]
pyamr.tests.test_manual.test_asai_warn_threshold_not_defined(fixture4)[source]
pyamr.tests.test_manual.test_asai_weights_frequency(fixture4)[source]
pyamr.tests.test_manual.test_asai_weights_from_column(fixture4)[source]
pyamr.tests.test_manual.test_asai_weights_uniform(fixture4)[source]
pyamr.tests.test_manual.test_dri_cddep(fixture_dri_cddep_test)[source]

Validate the output using CDDEP data.

pyamr.tests.test_manual.test_mari_class(fixture5)[source]
pyamr.tests.test_manual.test_mari_class_temporal_iti_period_is_integer_fails(fixture5)[source]
pyamr.tests.test_manual.test_mari_class_temporal_oti(fixture5)[source]
pyamr.tests.test_manual.test_sari_class_overall(fixture3)[source]
pyamr.tests.test_manual.test_sari_class_timeseries(fixture3)[source]
pyamr.tests.test_manual.test_sari_empty_dataframe()[source]
pyamr.tests.test_manual.test_sari_method_empty(fixture3)[source]
pyamr.tests.test_manual.test_sari_strategy(fixture, strategy)[source]
pyamr.tests.test_manual.timeseries()[source]

pyamr.tests.test_scripts module

Functions:

test_script_run_pyamr_core(self)

test_script_run_pyamr_core_regression(self)

test_script_run_pyamr_core_stats(self)

test_script_run_pyamr_core_table(self)

test_script_run_pyamr_graphics(self)

test_script_run_pyamr_metrics(self)

pyamr.tests.test_scripts.pyamr = WindowsPath('C:/Users/kelda/Desktop/repositories/github/pyAMR/main/pyamr')

@patch(‘matplotlib.pyplot.show’) def test_script_run_pyamr(self):

for f in (pyamr).glob(’**/*.py’):

runpy.run_path(str(f))

pyamr.tests.test_scripts.test_script_run_pyamr_core(self)[source]
pyamr.tests.test_scripts.test_script_run_pyamr_core_regression(self)[source]
pyamr.tests.test_scripts.test_script_run_pyamr_core_stats(self)[source]
pyamr.tests.test_scripts.test_script_run_pyamr_core_table(self)[source]
pyamr.tests.test_scripts.test_script_run_pyamr_graphics(self)[source]
pyamr.tests.test_scripts.test_script_run_pyamr_metrics(self)[source]

Module contents