Skip to content

Commit

Permalink
remove dependency dateutil
Browse files Browse the repository at this point in the history
  • Loading branch information
1letter committed Apr 2, 2024
1 parent 9d10090 commit fb5dcee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plone/app/event/tests/base_setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from datetime import datetime
from datetime import timedelta
from dateutil.relativedelta import relativedelta
from plone.app.event.dx import behaviors
from plone.app.event.testing import set_browserlayer
from plone.app.event.testing import set_timezone
Expand Down Expand Up @@ -46,7 +45,7 @@ def make_dates(self):
past = self.past = tz.normalize(now - timedelta(days=10))
future = self.future = tz.normalize(now + timedelta(days=10))
far = self.far = tz.normalize(now + timedelta(days=30))
scifi = self.scifi = tz.normalize(now + relativedelta(years=50))
scifi = self.scifi = tz.normalize(now + 50 * timedelta(days=365))
duration = self.duration = timedelta(hours=1)
return (now, past, future, far, duration, scifi)

Expand Down

0 comments on commit fb5dcee

Please sign in to comment.