AKSubmission.tests module
- class AKSubmission.tests.ModelViewTests(methodName='runTest')[source]
Bases:
BasicViewTests,TestCaseTestcases for AKSubmission app.
This extends
BasicViewTestsfor standard view and edit testcases that are specified in this class as VIEWS and EDIT_TESTCASES.Additionally several additional testcases, in particular to test the API and the dispatching for owner selection and editing are specified.
- test_akslot_edit_delete_prevention()[source]
Slots planned already may not be modified or deleted in front end
- test_orga_message_submission()[source]
Test submission and storing of direct confident messages to organizers
- test_visibility_requirements_in_submission_form()[source]
Test visibility of requirements field in submission form
- test_visibility_types_in_submission_form()[source]
Test visibility of types field in submission form
- test_duration_validation_in_submission_form()[source]
Test that the durations field only accepts lines that can be converted into meaningful durations and that durations longer than the event are clamped to the length of the event
- test_submission_with_too_long_durations()[source]
Test that slots with durations longer than the event are shortened to the event length when submitting an AK and that the user is warned about this