Commit b7f889e
committed
Make
It will start when the context is entered and stop when it is left.
This makes the `MockMicrogrid` easier to work with while ensure proper
finalization.
Signed-off-by: Leandro Lucarella <[email protected]>MockMicrogrid an async context manager1 parent d2bb6d4 commit b7f889e
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
569 | 570 | | |
570 | 571 | | |
571 | 572 | | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
0 commit comments