home.tests.test_filters

Test cases for home app filters.

Classes

NotificationFilterTests

Test cases for NotificationFilter.

Module Contents

class home.tests.test_filters.NotificationFilterTests(methodName='runTest')[source]

Bases: django.test.TestCase

Test cases for NotificationFilter.

setUp()[source]

Set up test fixtures.

Return type:

None

test_filter_by_multiple_types_with_value()[source]

Test filter_by_multiple_types with comma-separated values.

Return type:

None

test_filter_by_multiple_types_without_value()[source]

Test filter_by_multiple_types without value.

Return type:

None

test_filter_by_multiple_sources_with_value()[source]

Test filter_by_multiple_sources with comma-separated values.

Return type:

None

test_filter_by_multiple_sources_without_value()[source]

Test filter_by_multiple_sources without value.

Return type:

None

test_filter_by_date_range_today()[source]

Test filter_by_date_range with ‘today’ value.

Return type:

None

test_filter_by_date_range_last7days()[source]

Test filter_by_date_range with ‘last7days’ value.

Return type:

None

test_filter_by_date_range_last30days()[source]

Test filter_by_date_range with ‘last30days’ value.

Return type:

None

test_filter_by_date_range_all()[source]

Test filter_by_date_range with ‘all’ value.

Return type:

None

test_filter_by_date_range_invalid_value()[source]

Test filter_by_date_range with invalid value.

Return type:

None

test_filter_by_date_range_without_value()[source]

Test filter_by_date_range without value.

Return type:

None

test_filter_meta_configuration()[source]

Test that the Meta class is correctly configured.

Return type:

None