File tree 2 files changed +8
-1
lines changed
tests/microgrid/power_distributing/_component_status
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ dev-pytest = [
84
84
" frequenz-repo-config[extra-lint-examples] == 0.13.3" ,
85
85
" pytest-mock == 3.14.0" ,
86
86
" pytest-asyncio == 0.26.0" ,
87
- " time-machine == 2.12 .0" ,
87
+ " time-machine == 2.16 .0" ,
88
88
" async-solipsism == 0.7" ,
89
89
" hypothesis == 6.131.9" ,
90
90
]
Original file line number Diff line number Diff line change 12
12
from datetime import datetime , timedelta , timezone
13
13
from typing import Generic , TypeVar
14
14
15
+ import async_solipsism
15
16
import pytest
16
17
from frequenz .channels import Broadcast , Receiver
17
18
from frequenz .client .microgrid import (
42
43
from ....utils .receive_timeout import Timeout , receive_timeout
43
44
44
45
46
+ @pytest .fixture
47
+ def event_loop_policy () -> async_solipsism .EventLoopPolicy :
48
+ """Event loop policy."""
49
+ return async_solipsism .EventLoopPolicy ()
50
+
51
+
45
52
def battery_data ( # pylint: disable=too-many-arguments,too-many-positional-arguments
46
53
component_id : ComponentId ,
47
54
timestamp : datetime | None = None ,
You can’t perform that action at this time.
0 commit comments