radioco.apps.schedules.tests package

Submodules

radioco.apps.schedules.tests.test_recurrences module

class radioco.apps.schedules.tests.test_recurrences.EmptyRecurrenceTests(methodName='runTest')[source]

Bases: radioco.apps.radioco.test_utils.TestDataMixin, django.test.testcases.TestCase

Tests to check django-recurrence behaviour when there are no recurrences

setUp()[source]
test_after()[source]
test_after_inclusive()[source]
test_before()[source]
test_before_inclusive()[source]
test_no_values()[source]
class radioco.apps.schedules.tests.test_recurrences.RecurrenceTests(methodName='runTest')[source]

Bases: radioco.apps.radioco.test_utils.TestDataMixin, django.test.testcases.TestCase

Tests to check django-recurrence behaviour

setUp()[source]
test_after()[source]
test_after_inclusive()[source]
test_before_dt()[source]
test_before_inclusive()[source]
test_impossible_recurrence_after()[source]

Testing error calling after and function wrapper to solve it (recurrence_after)

test_impossible_recurrence_before()[source]

Testing error calling before and function wrapper to solve it (recurrence_before)

test_last_date_is_equals_before_limit()[source]
test_start_date_is_before_start_limit()[source]
test_when_date_doesnt_exist_on_february()[source]

radioco.apps.schedules.tests.test_schedules module

class radioco.apps.schedules.tests.test_schedules.CalendarAdminTests(methodName='runTest')[source]

Bases: radioco.apps.radioco.test_utils.TestDataMixin, django.test.testcases.TestCase

setUp()[source]
test_clone_calendar()[source]
class radioco.apps.schedules.tests.test_schedules.CalendarManagerTests(methodName='runTest')[source]

Bases: radioco.apps.radioco.test_utils.TestDataMixin, django.test.testcases.TestCase

setUp()[source]
test_current()[source]
test_current_no_date()[source]
class radioco.apps.schedules.tests.test_schedules.CalendarModelTests(methodName='runTest')[source]

Bases: radioco.apps.radioco.test_utils.TestDataMixin, django.test.testcases.TestCase

test_str()[source]
class radioco.apps.schedules.tests.test_schedules.CalendarValidationTests(methodName='runTest')[source]

Bases: django.test.testcases.TestCase

setUp()[source]
test_only_one_calendar_active()[source]
class radioco.apps.schedules.tests.test_schedules.ScheduleBetweenTests(methodName='runTest')[source]

Bases: radioco.apps.radioco.test_utils.TestDataMixin, django.test.testcases.TestCase

setUp()[source]
test_between_includes_started_episode()[source]
test_dates_between_includes_started_episode()[source]
class radioco.apps.schedules.tests.test_schedules.ScheduleModelTests(methodName='runTest')[source]

Bases: radioco.apps.radioco.test_utils.TestDataMixin, django.test.testcases.TestCase

setUp()[source]
test_date_after()[source]
test_date_after_exclude()[source]
test_date_before()[source]
test_dates_between()[source]
test_dates_between_complex_ruleset()[source]
test_dates_between_earlier_end_by_programme()[source]
test_dates_between_later_start_by_programme()[source]
test_end_gt_calendar()[source]
test_recurrence_rules()[source]
test_runtime()[source]
test_runtime_not_set()[source]
test_save_rearrange_episodes(*args, **keywargs)[source]
test_start()[source]
test_start_lt_calendar()[source]
test_unicode()[source]
class radioco.apps.schedules.tests.test_schedules.ScheduleUtilsTests(methodName='runTest')[source]

Bases: radioco.apps.radioco.test_utils.TestDataMixin, django.test.testcases.TestCase

setUp()[source]
test_available_dates_after()[source]
test_available_dates_none()[source]
test_rearrange_episodes()[source]
test_rearrange_episodes_new_schedule(*args, **keywargs)[source]
test_rearrange_only_non_emited_episodes(*args, **keywargs)[source]
class radioco.apps.schedules.tests.test_schedules.ScheduleValidationTests(methodName='runTest')[source]

Bases: radioco.apps.radioco.test_utils.TestDataMixin, django.test.testcases.TestCase

test_fields()[source]
class radioco.apps.schedules.tests.test_schedules.TransmissionModelTests(methodName='runTest')[source]

Bases: radioco.apps.radioco.test_utils.TestDataMixin, django.test.testcases.TestCase

setUp()[source]
test_at()[source]
test_between()[source]
test_between_by_queryset()[source]
test_end()[source]
test_episode__url()[source]
test_name()[source]
test_programme_url()[source]
test_slug()[source]
test_start()[source]
radioco.apps.schedules.tests.test_schedules.mock_now(dt=datetime.datetime(2014, 1, 1, 13, 30, tzinfo=<UTC>))[source]

radioco.apps.schedules.tests.test_timezone module

class radioco.apps.schedules.tests.test_timezone.ScheduleModelTests(methodName='runTest')[source]

Bases: radioco.apps.radioco.test_utils.TestDataMixin, django.test.testcases.TestCase

setUp()[source]
test_CEST_transition()[source]
test_CET_transition()[source]
test_cleaned_internal_recurrence_dates()[source]
test_transform_dt_to_default_tz()[source]
radioco.apps.schedules.tests.test_timezone.test_CET_transitions(self)[source]

Module contents