Fix tests - I think.
This commit is contained in:
parent
7236462023
commit
5748f9c1ee
|
@ -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),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue