AKSubmission.tests module

class AKSubmission.tests.ModelViewTests(methodName='runTest')[source]

Bases: BasicViewTests, TestCase

Testcases for AKSubmission app.

This extends BasicViewTests for 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_slot_creation_deletion()[source]

Test creation and deletion of slots in frontend

test_ak_owner_editing()[source]

Test dispatch of user editing requests

test_ak_owner_selection()[source]

Test dispatch of owner selection requests

test_orga_message_submission()[source]

Test submission and storing of direct confident messages to organizers

test_interest_api()[source]

Test interest indicating API (access, functionality)

test_adding_of_unknown_user()[source]

Test adding of a previously not existing owner to an AK

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

test_slot_duration_handling()[source]

Test that adding and editing slots handles durations like the submission form (same input formats, invalid values rejected, too long durations clamped to the event length with a warning)

test_wish_to_ak_default_slot_clamped()[source]

Test that the default slot created when a wish becomes an AK is not longer than the event