loki.tools.tests.test_tools

Unit tests for utility functions and classes in loki.tools.

Functions

fixture_here()

test_binary_insertion_sort()

Test binary insertion sort for some random cases.

test_dict_override()

test_execute(here, capsys)

test_is_subset_not_ordered(a, b, ref)

Test is_subset with ordered data types.

test_is_subset_ordered(a, b, ref)

Test is_subset with ordered data types.

test_is_subset_ordered_subsequent(a, b, ref)

Test is_subset with ordered data types.

test_is_subset_raises(a, b)

test_joinable_string_list(items, sep, width, ...)

Test JoinableStringList for some common scenarios.

test_joinable_string_list_long()

Test JoinableStringList with some long edge cases.

test_loki_tempdir(here)

test_optional()

test_timeout()

test_truncate_string(string, length, ...)

Test string truncation for different string lengths.

test_yaml_include(here)

fixture_here()
test_is_subset_ordered(a, b, ref)

Test is_subset with ordered data types.

test_is_subset_ordered_subsequent(a, b, ref)

Test is_subset with ordered data types.

test_is_subset_not_ordered(a, b, ref)

Test is_subset with ordered data types.

test_is_subset_raises(a, b)
test_joinable_string_list(items, sep, width, cont, ref)

Test JoinableStringList for some common scenarios.

test_joinable_string_list_long()

Test JoinableStringList with some long edge cases.

test_truncate_string(string, length, continuation, ref)

Test string truncation for different string lengths.

test_binary_insertion_sort()

Test binary insertion sort for some random cases.

test_optional()
test_yaml_include(here)
test_execute(here, capsys)
test_timeout()
test_dict_override()
test_loki_tempdir(here)