Skip to content

Commit 1a61106

Browse files
committed
Revert "Fix tests on a leap year date"
This reverts commit 0926b07.
1 parent 29aadf1 commit 1a61106

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

ramp-frontend/ramp_frontend/tests/test_ramp.py

+12-12
Original file line numberDiff line numberDiff line change
@@ -245,27 +245,27 @@ def test_user_event_status(client_session):
245245
NOW = datetime.datetime.now()
246246
testtimestamps = [
247247
(
248-
NOW.replace(year=NOW.year + 1, day=min(NOW.day - 2, 1)),
249-
NOW.replace(year=NOW.year + 2, day=min(NOW.day - 2, 1)),
250-
NOW.replace(year=NOW.year + 3, day=min(NOW.day - 2, 1)),
248+
NOW.replace(year=NOW.year + 1),
249+
NOW.replace(year=NOW.year + 2),
250+
NOW.replace(year=NOW.year + 3),
251251
b"event-close",
252252
),
253253
(
254-
NOW.replace(year=NOW.year - 1, day=min(NOW.day - 2, 1)),
255-
NOW.replace(year=NOW.year + 1, day=min(NOW.day - 2, 1)),
256-
NOW.replace(year=NOW.year + 2, day=min(NOW.day - 2, 1)),
254+
NOW.replace(year=NOW.year - 1),
255+
NOW.replace(year=NOW.year + 1),
256+
NOW.replace(year=NOW.year + 2),
257257
b"event-comp",
258258
),
259259
(
260-
NOW.replace(year=NOW.year - 2, day=min(NOW.day - 2, 1)),
261-
NOW.replace(year=NOW.year - 1, day=min(NOW.day - 2, 1)),
262-
NOW.replace(year=NOW.year + 1, day=min(NOW.day - 2, 1)),
260+
NOW.replace(year=NOW.year - 2),
261+
NOW.replace(year=NOW.year - 1),
262+
NOW.replace(year=NOW.year + 1),
263263
b"event-collab",
264264
),
265265
(
266-
NOW.replace(year=NOW.year - 3, day=min(NOW.day - 2, 1)),
267-
NOW.replace(year=NOW.year - 2, day=min(NOW.day - 2, 1)),
268-
NOW.replace(year=NOW.year - 1, day=min(NOW.day - 2, 1)),
266+
NOW.replace(year=NOW.year - 3),
267+
NOW.replace(year=NOW.year - 2),
268+
NOW.replace(year=NOW.year - 1),
269269
b"event-close",
270270
),
271271
]

0 commit comments

Comments
 (0)