Fix tests - I think.

This commit is contained in:
Víðir Valberg Guðmundsson 2019-07-31 20:12:58 +02:00
parent 7236462023
commit 5748f9c1ee

View file

@ -18,18 +18,19 @@ class CampFactory(DjangoModelFactory):
buildup = factory.LazyFunction( buildup = factory.LazyFunction(
lambda: DateTimeTZRange( lambda: DateTimeTZRange(
lower=timezone.now() - timezone.timedelta(3), upper=timezone.now() lower=timezone.now() - timezone.timedelta(days=3),
upper=timezone.now() - timezone.timedelta(hours=1)
) )
) )
camp = factory.LazyFunction( camp = factory.LazyFunction(
lambda: DateTimeTZRange(lower=timezone.now(), upper=timezone.now()) lambda: DateTimeTZRange(lower=timezone.now(), upper=timezone.now() + timezone.timedelta(days=8))
) )
teardown = factory.LazyFunction( teardown = factory.LazyFunction(
lambda: DateTimeTZRange( lambda: DateTimeTZRange(
lower=timezone.now() + timezone.timedelta(8), lower=timezone.now() + timezone.timedelta(days=8, hours=1),
upper=timezone.now() + timezone.timedelta(11), upper=timezone.now() + timezone.timedelta(days=11),
) )
) )