Fix tests - I think.
This commit is contained in:
parent
7236462023
commit
5748f9c1ee
|
@ -18,18 +18,19 @@ class CampFactory(DjangoModelFactory):
|
|||
|
||||
buildup = factory.LazyFunction(
|
||||
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(
|
||||
lambda: DateTimeTZRange(lower=timezone.now(), upper=timezone.now())
|
||||
lambda: DateTimeTZRange(lower=timezone.now(), upper=timezone.now() + timezone.timedelta(days=8))
|
||||
)
|
||||
|
||||
teardown = factory.LazyFunction(
|
||||
lambda: DateTimeTZRange(
|
||||
lower=timezone.now() + timezone.timedelta(8),
|
||||
upper=timezone.now() + timezone.timedelta(11),
|
||||
lower=timezone.now() + timezone.timedelta(days=8, hours=1),
|
||||
upper=timezone.now() + timezone.timedelta(days=11),
|
||||
)
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue