Skip to content

Commit

Permalink
Merge pull request #4452 from onepercentclub/hotfix/fix-date-sensitiv…
Browse files Browse the repository at this point in the history
…e-test

Smarter date test so it works all days of the month
  • Loading branch information
gannetson authored Dec 24, 2020
2 parents 1351bf5 + a99fb76 commit 9728466
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bluebottle/time_based/tests/test_periodic_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ def before(self):
datetime(
self.activity.registration_deadline.year,
self.activity.registration_deadline.month,
self.activity.registration_deadline.day - 1
)
self.activity.registration_deadline.day
) - timedelta(days=1)
)

@property
Expand All @@ -127,8 +127,8 @@ def after_registration_deadline(self):
datetime(
self.activity.registration_deadline.year,
self.activity.registration_deadline.month,
self.activity.registration_deadline.day + 1
)
self.activity.registration_deadline.day
) + timedelta(days=1)
)

@property
Expand Down

0 comments on commit 9728466

Please sign in to comment.