AKDashboard.tests module
- class AKDashboard.tests.DashboardTests(methodName='runTest')[source]
Bases:
TestCaseSpecific Dashboard Tests
- 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 visibility of plan buttons with regard to plan visibility status for a given event
Test visibility of poll buttons with regard to poll visibility status for a given event
- class AKDashboard.tests.DashboardViewTests(methodName='runTest')[source]
Bases:
BasicViewTests,TestCaseGeneric view tests, based on
AKModel.BasicViewTestsas specified in this class in VIEWS
- class AKDashboard.tests.DashboardEventInfoTests(methodName='runTest')[source]
Bases:
TestCaseTests for the facts shown on the event info page
- 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_top_three_rooms()[source]
Test that only the three busiest rooms are shown (rooms with the same hours ordered by name)
Test that facts revealing the schedule are not shown as long as the plan is hidden