Skip to content

Commit

Permalink
Improve (and fix some) test finalization (#838)
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
llucax authored Jan 9, 2024
2 parents 28d25a8 + 17c17d5 commit 3e9c892
Show file tree
Hide file tree
Showing 13 changed files with 2,188 additions and 2,031 deletions.
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,10 @@ disable = [
"unsubscriptable-object",
# Checked by flake8
"line-too-long",
"unused-variable",
"redefined-outer-name",
"unnecessary-lambda-assignment",
"unused-import",
"unused-variable",
]

[tool.pylint.design]
Expand Down
Loading

0 comments on commit 3e9c892

Please sign in to comment.