AKSolverInterface.tests.test_json_export module

class AKSolverInterface.tests.test_json_export.JSONExportTest(methodName='runTest')[source]

Bases: TestCase

Test if JSON export is correct.

It tests if the output conforms to the KoMa specification: https://github.com/Die-KoMa/ak-plan-optimierung/wiki/Input-&-output-format

classmethod setUpTestData()[source]

Shared set up by initializing admin user.

set_up_event(event: Event) None[source]

Set up by retrieving json export and initializing data.

test_all_aks_exported()[source]

Test if exported AKs match AKSlots of Event.

test_conformity_to_schema()[source]

Test if JSON structure and types conform to schema.

test_id_uniqueness()[source]

Test if objects are only exported once.

test_timeslot_ids_consecutive()[source]

Test if Timeslots ids are chronologically consecutive.

test_general_conformity_to_spec()[source]

Test if rest of JSON structure and types conform to standard.

test_ak_durations()[source]

Test if all AK durations are correct.

test_ak_conflicts()[source]

Test if all AK conflicts are correct.

test_ak_depenedencies()[source]

Test if all AK dependencies are correct.

test_ak_reso()[source]

Test if resolution intent of AKs is correctly exported.

test_ak_info()[source]

Test if contents of AK info dict is correct.

test_ak_room_constraints()[source]

Test if AK room constraints are exported as expected.

test_ak_time_constraints()[source]

Test if AK time constraints are exported as expected.

test_all_rooms_exported()[source]

Test if exported Rooms match the rooms of Event.

test_room_capacity()[source]

Test if room capacity is exported correctly.

test_room_info()[source]

Test if contents of Room info dict is correct.

test_room_timeconstraints()[source]

Test if Room time constraints are exported as expected.

test_room_fulfilledroomconstraints()[source]

Test if room constraints fulfilled by Room are correct.

test_timeslots_consecutive()[source]

Test if consecutive timeslots in JSON are in fact consecutive.

test_block_cover_categories()[source]

Test if blocks covers all default slot resp. whole event per category.

test_timeslot_fulfilledconstraints()[source]

Test if fulfilled time constraints by timeslot are as expected.

test_timeslots_info()[source]

Test timeslots info dict

test_all_participants_exported()[source]

Test if exported Rooms match the rooms of Event.

test_participant_info()[source]

Test if contents of participants info dict is correct.

test_participant_timeconstraints()[source]

Test if participant time constraints are exported as expected.

test_participant_roomconstraints()[source]

Test if participant room constraints are exported as expected.

test_preferences()[source]

Test if preferences are exported as expected.