-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Heat pump: Tests, Translation, Docstrings, Relocation #89
Heat pump: Tests, Translation, Docstrings, Relocation #89
Conversation
Run these to fix code style:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good refactoring!
Mid-term I see the issue of defining heat pumps with different properties, or even multiple heat pumps.
But I think this is a topic that should be covered by a discussion before making implementation changes.
tests/conftest.py
Outdated
@pytest.fixture(scope="function") | ||
def hp_5kw_24h() -> HeatPump: | ||
"""Heat pump with 5 kw heating output and 24 h prediction""" | ||
return HeatPump(5000, 24) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not put it in test_heatpump
to keep the related things together?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thought we can place all fixture in one place. Maybe adding a subfolder fixtures
inside tests
which can be used for that.
add type hints, improve unit tests.
Co-authored-by: Michael Osthege <[email protected]>
48c2e72
to
0c3c85c
Compare
* Add first unit test for heatpump COP calculation * Translate to english, add type hints, improve unit tests. * Run pre-commit * Apply suggestions from code review Co-authored-by: Michael Osthege <[email protected]> * Remove conftest file --------- Co-authored-by: Michael Osthege <[email protected]>
* Add first unit test for heatpump COP calculation * Translate to english, add type hints, improve unit tests. * Run pre-commit * Apply suggestions from code review Co-authored-by: Michael Osthege <[email protected]> * Remove conftest file --------- Co-authored-by: Michael Osthege <[email protected]>
Heat pump class is refactored for this PR. Following things where done:
class
prefix of python file