misc: fix event duplication tests with dst change (#70845)

This commit is contained in:
Lauréline Guérin 2022-10-29 09:37:14 +02:00
parent 0286a48893
commit a9236fac0d
No known key found for this signature in database
GPG Key ID: 1FAB9B9B4F93D473
1 changed files with 2 additions and 2 deletions

View File

@ -2510,8 +2510,8 @@ def test_duplicate_event(app, admin_user):
assert Event.objects.count() == 1
new_datetime = localtime(event.start_datetime).replace(
year=event.start_datetime.year + 1, hour=17, minute=0
new_datetime = localtime(event.start_datetime.replace(year=event.start_datetime.year + 1)).replace(
hour=17, minute=0
)
app = login(app)