Skip to content

Commit 3e9c892

Browse files
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 line
2 parents 28d25a8 + 17c17d5 commit 3e9c892

13 files changed

+2188
-2031
lines changed

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,10 @@ disable = [
155155
"unsubscriptable-object",
156156
# Checked by flake8
157157
"line-too-long",
158-
"unused-variable",
158+
"redefined-outer-name",
159159
"unnecessary-lambda-assignment",
160+
"unused-import",
161+
"unused-variable",
160162
]
161163

162164
[tool.pylint.design]

0 commit comments

Comments
 (0)