Commit 3e9c892
authored
Improve (and fix some) test finalization (#838)
- Remove some duplicate checks from pylint
- Make Mocks private to the module
- Import module from `typing`
- Allow passing the mocker in the constructor
- Make `MockMicrogrid` an async context manager
- Use the `MockMicrogrid` as an async context manager
- Improve finalization of power distributing tests
- Improve finalization of voltage streamer tests
- Improve finalization of logical meter tests
- Improve finalization of formula formatter tests
- Improve finalization of EV charger pool tests
- Improve finalization of formula composition tests
- Improve finalization of battery status tests
- Improve finalization of grid tests
- Disable pylint check only in one lineFile tree
13 files changed
+2188
-2031
lines changed- tests
- actor
- power_distributing
- microgrid
- timeseries
- _battery_pool
- _formula_engine
13 files changed
+2188
-2031
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
159 | 159 | | |
| 160 | + | |
| 161 | + | |
160 | 162 | | |
161 | 163 | | |
162 | 164 | | |
| |||
0 commit comments