tests: remove transactional_db fixture for migrations tests (#89040)
gitea/chrono/pipeline/head This commit looks good Details

This commit is contained in:
Yann Weber 2024-04-04 09:44:00 +02:00
parent 42f73e2626
commit 4e6f41c4de
1 changed files with 4 additions and 4 deletions

View File

@ -195,7 +195,7 @@ def test_meeting_event_exclusion_constraint():
)
def test_clean_time_period_exceptions(transactional_db):
def test_clean_time_period_exceptions():
app = 'agendas'
migrate_from = [(app, '0065_unavailability_calendar')]
@ -297,7 +297,7 @@ def test_clean_time_period_exceptions(transactional_db):
@override_settings(LANGUAGE_CODE='fr-fr')
def test_translate_holidays_exceptions(transactional_db):
def test_translate_holidays_exceptions():
app = 'agendas'
migrate_from = [(app, '0068_remove_timeperiodexception_external')]
@ -344,7 +344,7 @@ def test_translate_holidays_exceptions(transactional_db):
assert desk.timeperiodexception_set.filter(label='Jour de lAn').count() == 1
def test_migration_convert_week_days(transactional_db):
def test_migration_convert_week_days():
app = 'agendas'
migrate_from = [(app, '0156_update_dow_index')]
@ -392,7 +392,7 @@ def test_migration_convert_week_days(transactional_db):
assert SharedCustodyRule.objects.get().days == [1, 5, 7]
def test_migration_booking_check_data(transactional_db):
def test_migration_booking_check_data():
app = 'agendas'
migrate_from = [(app, '0161_add_booking_check_model')]