tests.integration_tests.network.test_graph_metrics#

Functions

test_flatten_list

Test to check helper function works as intended.

test_geometric_mean_overflow

Test to check geometric mean with overflow returns correct values.

test_get_func_summary_statistics

Test graph summary stats function returns expected number of elements.

test_get_graph_metric_bundle

Test size and number of elements returned by graph metric bundle method.

tests.integration_tests.network.test_graph_metrics.test_geometric_mean_overflow(input_list, answer)[source]#

Test to check geometric mean with overflow returns correct values.

Parameters:
  • input_list – The values used to derive a geometric mean.

  • answer – The geometric mean.

tests.integration_tests.network.test_graph_metrics.test_flatten_list(input_list, expected_len)[source]#

Test to check helper function works as intended.

Parameters:
  • input_list – A ragged list of lists.

  • expected_len – The expected length once flattened.

tests.integration_tests.network.test_graph_metrics.test_get_func_summary_statistics(default_network)[source]#

Test graph summary stats function returns expected number of elements.

tests.integration_tests.network.test_graph_metrics.test_get_graph_metric_bundle(default_network)[source]#

Test size and number of elements returned by graph metric bundle method.