Skip to content

Commit 55302a0

Browse files
author
Anand B Pillai
committed
Fixing hard-coded date in ScheduleItemFactory to +90 days
1 parent 4ab7bee commit 55302a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/factories.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
# Standard Library
44
import datetime
5+
from datetime import timedelta
56
import uuid
67

78
# Third Party Stuff
@@ -138,7 +139,7 @@ class Meta:
138139
strategy = factory.CREATE_STRATEGY
139140

140141
event_date = fuzzy.FuzzyDate(datetime.date.today(),
141-
datetime.date(2017, 1, 1)).fuzz()
142+
datetime.date.today() + timedelta(days=90)).fuzz()
142143
start_time = fuzzy.FuzzyChoice(['9:30.750000', ]).fuzz()
143144
end_time = fuzzy.FuzzyChoice(['10:15.750000', ]).fuzz()
144145
conference = factory.SubFactory("tests.factories.ConferenceFactory")

0 commit comments

Comments
 (0)