File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed
Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change 44"""Tests of MicrogridApi."""
55
66import asyncio
7- import zoneinfo
87from asyncio .tasks import ALL_COMPLETED
98from unittest import mock
109from unittest .mock import AsyncMock , MagicMock
@@ -102,7 +101,6 @@ def metadata(self) -> Metadata:
102101 location = Location (
103102 latitude = 52.520008 ,
104103 longitude = 13.404954 ,
105- timezone = zoneinfo .ZoneInfo ("Europe/Berlin" ),
106104 ),
107105 )
108106
@@ -170,8 +168,6 @@ async def test_connection_manager(
170168
171169 assert api .microgrid_id == metadata .microgrid_id
172170 assert api .location == metadata .location
173- assert api .location and api .location .timezone
174- assert api .location .timezone .key == "Europe/Berlin"
175171
176172 # It should not be possible to initialize method once again
177173 with pytest .raises (AssertionError ):
@@ -215,5 +211,3 @@ async def test_connection_manager_another_method(
215211
216212 assert api .microgrid_id == metadata .microgrid_id
217213 assert api .location == metadata .location
218- assert api .location and api .location .timezone
219- assert api .location .timezone .key == "Europe/Berlin"
You can’t perform that action at this time.
0 commit comments