Skip to content

Commit

Permalink
add a check that a timezone difference matters to equality
Browse files Browse the repository at this point in the history
  • Loading branch information
niccokunzmann committed Nov 16, 2022
1 parent b486ec9 commit ae9ac71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/icalendar/tests/test_unit_prop.py
Expand Up @@ -4,13 +4,12 @@
from datetime import timedelta
from icalendar.parser import Parameters
import unittest
from icalendar.prop import vDatetime
from icalendar.prop import vDatetime, vDDDTypes
from icalendar.windows_to_olson import WINDOWS_TO_OLSON
import pytest
import pytz
from ..prop import vDDDTypes
from copy import deepcopy

from dateutil import tz


class TestProp(unittest.TestCase):
Expand Down Expand Up @@ -504,6 +503,7 @@ def test_prop_TypesFactory(self):
vDDDTypes_list = [
vDDDTypes(pytz.timezone('US/Eastern').localize(datetime(year=2022, month=7, day=22, hour=12, minute=7))),
vDDDTypes(datetime(year=2022, month=7, day=22, hour=12, minute=7)),
vDDDTypes(datetime(year=2022, month=7, day=22, hour=12, minute=7, tzinfo=tz.UTC)),
vDDDTypes(date(year=2022, month=7, day=22)),
vDDDTypes(date(year=2022, month=7, day=23)),
vDDDTypes(time(hour=22, minute=7, second=2))
Expand Down

0 comments on commit ae9ac71

Please sign in to comment.