mirror of https://github.com/snachodog/mybuddy.git
Prevent potential sleep entry intersection errors in tests
This commit is contained in:
parent
0c0d4baf41
commit
774504bce2
|
@ -334,6 +334,9 @@ class SleepFormsTestCase(FormsTestCaseBase):
|
||||||
)
|
)
|
||||||
|
|
||||||
def test_add(self):
|
def test_add(self):
|
||||||
|
# Prevent potential sleep entry intersection errors.
|
||||||
|
models.Sleep.objects.all().delete()
|
||||||
|
|
||||||
end = timezone.localtime()
|
end = timezone.localtime()
|
||||||
start = end - timezone.timedelta(minutes=2)
|
start = end - timezone.timedelta(minutes=2)
|
||||||
params = {
|
params = {
|
||||||
|
|
Loading…
Reference in New Issue