AKDashboard.tests module

class AKDashboard.tests.DashboardTests(methodName='runTest')[source]

Bases: TestCase

Specific Dashboard Tests

classmethod setUpTestData()[source]

Initialize Test database

test_dashboard_view()[source]

Check that the main dashboard is reachable (would also be covered by generic view testcase below)

test_nonexistent_dashboard_view()[source]

Make sure there is no dashboard for an non-existing event

test_history()[source]

Test displaying of history

For the sake of that test, the setting to show recent events in dashboard is enforced to be true regardless of the default configuration currently in place

test_public()[source]

Test handling of public and private events (only public events should be part of the standard dashboard, but there should be an individual dashboard for both public and private events)

test_active()[source]

Test existence of buttons with regard to activity status of the given event

test_plan_hidden()[source]

Test visibility of plan buttons with regard to plan visibility status for a given event

test_poll_hidden()[source]

Test visibility of poll buttons with regard to poll visibility status for a given event

test_dashboard_buttons()[source]

Make sure manually added buttons are displayed correctly

class AKDashboard.tests.DashboardViewTests(methodName='runTest')[source]

Bases: BasicViewTests, TestCase

Generic view tests, based on AKModel.BasicViewTests as specified in this class in VIEWS

class AKDashboard.tests.DashboardEventInfoTests(methodName='runTest')[source]

Bases: TestCase

Tests for the facts shown on the event info page

test_computed_facts()[source]

Test that the computed facts are correct for the test event

test_ties_and_normalization()[source]

Test that ties are shown with all names and that institutions are normalized

test_top_three_institutions()[source]

Test that only the three institutions with the most AK owners are shown

test_trashed_aks_are_ignored()[source]

Test that trashed AKs (and their slots) are not considered

test_top_three_rooms()[source]

Test that only the three busiest rooms are shown (rooms with the same hours ordered by name)

test_hidden_plan()[source]

Test that facts revealing the schedule are not shown as long as the plan is hidden

test_manual_facts()[source]

Test that manually maintained facts are shown in the specified order

test_empty_event()[source]

Test that the info page also works for an event without any data

test_german_translation()[source]

Test that the info page is translated, including localized numbers and plural forms