util.tests.test_mult_obj_viewsΒΆ

Tests for util/mult_obj_views.py.

ClassesΒΆ

TestGetPrimaryKeysFromStrAsListOfInts

Tests for get_primary_keys_from_str_as_list_of_ints function.

Module ContentsΒΆ

class util.tests.test_mult_obj_views.TestGetPrimaryKeysFromStrAsListOfInts[source]ΒΆ

Tests for get_primary_keys_from_str_as_list_of_ints function.

test_single_primary_key()[source]ΒΆ

Test parsing single primary key.

Return type:

None

test_multiple_primary_keys()[source]ΒΆ

Test parsing multiple primary keys.

Return type:

None

test_with_trailing_slash()[source]ΒΆ

Test parsing with trailing slash.

Return type:

None

test_empty_string_raises_error()[source]ΒΆ

Test that empty string raises ValueError.

Return type:

None

test_duplicate_keys_raises_error()[source]ΒΆ

Test that duplicate keys raise ValueError.

Return type:

None

test_duplicate_keys_with_trailing_slash_raises_error()[source]ΒΆ

Test that duplicate keys with trailing slash raise ValueError.

Return type:

None

test_non_integer_raises_error()[source]ΒΆ

Test that non-integer values raise ValueError.

Return type:

None

test_float_string_raises_error()[source]ΒΆ

Test that float strings raise ValueError.

Return type:

None

test_negative_integers()[source]ΒΆ

Test parsing negative integers.

Return type:

None

test_mixed_positive_negative()[source]ΒΆ

Test parsing mixed positive and negative integers.

Return type:

None

test_zero_as_primary_key()[source]ΒΆ

Test parsing zero as primary key.

Return type:

None

test_large_numbers()[source]ΒΆ

Test parsing large numbers.

Return type:

None

test_single_key_with_trailing_slash()[source]ΒΆ

Test single key with trailing slash.

Return type:

None

test_whitespace_in_keys_works()[source]ΒΆ

Test that whitespace in keys is handled by int().

Return type:

None

test_many_primary_keys()[source]ΒΆ

Test parsing many primary keys.

Return type:

None