MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / tearDown

Method tearDown

apps/backups/tests.py:934–938  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

932 CoreSettings.objects.filter(key__startswith='backup_').delete()
933
934 def tearDown(self):
935 from core.models import CoreSettings
936 from django_celery_beat.models import PeriodicTask
937 CoreSettings.objects.filter(key__startswith='backup_').delete()
938 PeriodicTask.objects.filter(name='backup-scheduled-task').delete()
939
940 def test_get_schedule_settings_defaults(self):
941 """Test that get_schedule_settings returns defaults when no settings exist"""

Callers

nothing calls this directly

Calls 2

deleteMethod · 0.45
filterMethod · 0.45

Tested by

no test coverage detected