We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cef414d commit fb35effCopy full SHA for fb35eff
tests/test_client.py
@@ -98,7 +98,15 @@ async def test_list_dispatches(
98
dispatches = client.list(microgrid_id=1)
99
async for page in dispatches:
100
for dispatch in page:
101
- assert dispatch in client.dispatches(microgrid_id=1)
+ service_side_dispatch = next(
102
+ filter(
103
+ lambda d: d.id == dispatch.id,
104
+ client.dispatches(microgrid_id=1),
105
+ ),
106
+ None,
107
+ )
108
+
109
+ assert dispatch == service_side_dispatch
110
111
112
async def test_list_dispatches_no_duration(
0 commit comments