home.tests.test_integrationΒΆ

Integration tests for home app views.

AttributesΒΆ

ClassesΒΆ

DashboardIntegrationTests

Integration tests for Dashboard view.

DashboardChartsDataIntegrationTests

Integration tests for Dashboard Charts and Counts API.

IndexViewIntegrationTests

Integration tests for Index view.

Module ContentsΒΆ

home.tests.test_integration.User[source]ΒΆ
class home.tests.test_integration.DashboardIntegrationTests(methodName='runTest')[source]ΒΆ

Bases: django.test.TestCase

Integration tests for Dashboard view.

setUp()[source]ΒΆ

Set up test fixtures.

Return type:

None

test_dashboard_page_loads()[source]ΒΆ

Test that dashboard page loads successfully.

Return type:

None

class home.tests.test_integration.DashboardChartsDataIntegrationTests(methodName='runTest')[source]ΒΆ

Bases: django.test.TestCase

Integration tests for Dashboard Charts and Counts API.

setUp()[source]ΒΆ

Set up test fixtures.

Return type:

None

test_dashboard_data_returns_json()[source]ΒΆ

Test that dashboard data endpoint returns JSON.

Return type:

None

test_dashboard_data_with_start_date()[source]ΒΆ

Test dashboard data with start_date parameter.

Return type:

None

test_dashboard_data_with_invalid_date()[source]ΒΆ

Test dashboard data with invalid date format.

Return type:

None

test_dashboard_data_with_exception(mock_filter)[source]ΒΆ

Test that exceptions are handled gracefully.

Parameters:

mock_filter (unittest.mock.Mock)

Return type:

None

class home.tests.test_integration.IndexViewIntegrationTests(methodName='runTest')[source]ΒΆ

Bases: django.test.TestCase

Integration tests for Index view.

setUp()[source]ΒΆ

Set up test fixtures.

Return type:

None

test_index_redirects_to_dashboard()[source]ΒΆ

Test that index redirects to dashboard.

Return type:

None