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_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