Prevent potential sleep entry intersection errors in tests

This commit is contained in:
Christopher C. Wells 2021-10-26 19:43:26 -07:00 committed by Christopher Charbonneau Wells
parent 0c0d4baf41
commit 774504bce2
1 changed files with 3 additions and 0 deletions

View File

@ -334,6 +334,9 @@ class SleepFormsTestCase(FormsTestCaseBase):
)
def test_add(self):
# Prevent potential sleep entry intersection errors.
models.Sleep.objects.all().delete()
end = timezone.localtime()
start = end - timezone.timedelta(minutes=2)
params = {