-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add methods for heat pump cooling consumption (#371)
* add methods for heat pump cooling consumption * Update test_TestForMissingProperties.py * add test case * Update test_Vitocal151A.py * change naming
- Loading branch information
Showing
3 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import unittest | ||
|
||
from PyViCare.PyViCareHeatPump import HeatPump | ||
from tests.ViCareServiceMock import ViCareServiceMock | ||
|
||
|
||
class Vitocal200(unittest.TestCase): | ||
def setUp(self): | ||
self.service = ViCareServiceMock('response/Vitocal151A.json') | ||
self.device = HeatPump(self.service) | ||
|
||
def test_getPowerConsumptionCooling(self): | ||
self.assertEqual(self.device.getPowerConsumptionCoolingUnit(), "kilowattHour") | ||
self.assertEqual(self.device.getPowerConsumptionCoolingToday(), 0) | ||
self.assertEqual(self.device.getPowerConsumptionCoolingThisMonth(), 0.1) | ||
self.assertEqual(self.device.getPowerConsumptionCoolingThisYear(), 0.1) |