Skip to content

Commit

Permalink
Merge pull request #97 from jontofront:refactor
Browse files Browse the repository at this point in the history
Remove obsolete test files and add new fixture
  • Loading branch information
jontofront authored Dec 3, 2024
2 parents 34c8cb6 + d032d40 commit a3fd6c1
Show file tree
Hide file tree
Showing 37 changed files with 10,799 additions and 955 deletions.
1 change: 0 additions & 1 deletion tests/__init__.py

This file was deleted.

1 change: 0 additions & 1 deletion tests/common.py

This file was deleted.

95 changes: 95 additions & 0 deletions tests/fixtures/SControl MK1/regParams.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
{
"settingsVer": 255531,
"editableParamsVer": 46,
"schedulesVer": 64806,
"remoteMenuVer": {},
"currentDataParamsEditsVer": 3,
"curr": {
"thermostat": 0,
"totalGain": 148327.40625,
"pumpCOWorks": true,
"fan2Exhaust": false,
"feederWorks": false,
"feeder": false,
"ecoSterMode2": 2,
"ecoSterMode3": 255,
"ecoSterContacts2": false,
"ecoSterMode1": 2,
"mixerPumpWorks4": false,
"mixerPumpWorks5": false,
"lambdaSet": 255,
"ecoSterContacts1": false,
"mixerPumpWorks2": false,
"ecoSterContacts3": false,
"contactGZCActive": false,
"fuelLevel": 12,
"tempOpticalSensor": 2.8025969286496341e-45,
"fanPower": 0.0,
"tempCOSet": 65,
"tempBack": 30.560226440429688,
"mixerTemp1": 31.992202758789062,
"mixerTemp3": null,
"mixerTemp2": null,
"mixerTemp5": null,
"mixerTemp4": null,
"blowFan1Active": false,
"statusCO": 2,
"boilerPower": 0,
"feederOuter": false,
"pumpCWUWorks": false,
"pumpCWU": true,
"alarmOutput": false,
"fan": false,
"lighter": false,
"lambdaStatus": 0,
"transmission": 12,
"fuelStream": 0.0,
"lighterWorks": false,
"mode": 5,
"alarmOutputWorks": false,
"feederOuterWorks": false,
"lambdaLevel": 211,
"tempExternalSensor": 7.1714935302734375,
"ecoSterTemp3": null,
"ecoSterTemp2": 23.559999465942383,
"ecoSterTemp1": 21.84178352355957,
"ecoSterNumber": 3,
"contactGZC": false,
"blowFan1": false,
"blowFan2": false,
"tempCO": 34.062744140625,
"pumpCO": true,
"mixerPumpWorks1": true,
"statusCWU": 0,
"pumpCirculation": false,
"ecoSterDaySched1": false,
"ecoSterDaySched2": false,
"ecoSterDaySched3": false,
"mixerPumpWorks3": false,
"outerBoilerWorks": false,
"pumpFireplace": false,
"pumpSolar": false,
"mixerSetTemp4": 32,
"mixerSetTemp5": 32,
"feeder2AdditionalWorks": false,
"pumpSolarWorks": false,
"mixerSetTemp1": 45,
"mixerSetTemp2": 32,
"mixerSetTemp3": 32,
"ecoSterSetTemp1": 20.700000762939453,
"blowFan2Active": false,
"tempCWU": 43.525177001953125,
"boilerPowerKW": 0.0,
"tempCWUSet": 50,
"pumpCirculationWorks": false,
"outerBoiler": false,
"tempFlueGas": 28.7421875,
"fan2ExhaustWorks": false,
"pumpFireplaceWorks": false,
"tempFeeder": 19.111846923828125,
"fanWorks": false,
"ecoSterSetTemp2": 23.100000381469727,
"ecoSterSetTemp3": null,
"feeder2Additional": false
}
}
280 changes: 280 additions & 0 deletions tests/fixtures/SControl MK1/regParamsData.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,280 @@
{
"version": 255537,
"data": {
"1536": false,
"1": false,
"1538": false,
"1539": false,
"1540": false,
"1541": true,
"1542": false,
"1543": false,
"1544": true,
"1545": true,
"1546": false,
"1547": false,
"1548": false,
"2": false,
"1550": false,
"1551": false,
"1552": false,
"1553": false,
"1554": false,
"3": false,
"1556": false,
"1557": false,
"1558": false,
"23": 0,
"24": 0,
"4": false,
"26": 0,
"27": 0,
"28": 0.019557356834411621,
"29": 2.8025969286496341e-45,
"30": 30.519973754882812,
"5": false,
"32": 7.1788330078125,
"33": null,
"34": null,
"35": null,
"36": null,
"6": false,
"1024": 34.016815185546875,
"39": 0,
"40": 0,
"41": 0,
"42": 0,
"43": 0,
"44": 0,
"45": 0,
"46": 0,
"47": 0,
"48": 0,
"8": 3830,
"50": 0,
"51": 0,
"52": 2,
"53": 0,
"54": 2,
"1033": null,
"56": 0,
"57": 0,
"58": 0,
"59": 0,
"60": 8,
"10": 3554,
"62": 0,
"63": 0,
"64": 0,
"65": 0,
"66": 8,
"11": 1520,
"1025": 43.525146484375,
"69": 0,
"70": 0,
"71": false,
"72": false,
"12": 2689,
"74": false,
"75": false,
"76": false,
"77": false,
"78": false,
"13": 1881,
"80": true,
"81": true,
"82": true,
"83": true,
"1537": false,
"14": 660,
"86": true,
"87": true,
"88": true,
"89": true,
"90": true,
"15": 1445,
"92": false,
"93": false,
"94": false,
"95": false,
"96": false,
"16": 0,
"98": false,
"99": false,
"100": false,
"101": false,
"102": false,
"17": 0,
"104": false,
"105": false,
"106": 1,
"103": false,
"108": false,
"18": 0,
"110": false,
"111": false,
"112": false,
"113": false,
"114": false,
"1555": false,
"116": false,
"117": false,
"118": false,
"119": false,
"120": true,
"20": 0,
"122": false,
"123": false,
"124": true,
"125": true,
"126": false,
"21": 0,
"128": true,
"129": true,
"130": false,
"107": 12,
"132": true,
"22": 0,
"134": 0.0,
"135": 0.0,
"136": true,
"137": true,
"138": true,
"139": false,
"140": true,
"141": false,
"142": false,
"109": false,
"144": false,
"145": false,
"146": true,
"147": true,
"148": true,
"149": true,
"150": 13,
"25": 0,
"152": 1,
"153": 100,
"154": 0,
"155": 0,
"156": 0,
"157": 0,
"1028": null,
"159": 0,
"160": 0,
"161": 0,
"162": 0,
"163": false,
"164": false,
"165": false,
"166": false,
"167": false,
"168": 0,
"169": 1,
"170": 0.0,
"171": 0,
"172": 0,
"173": 0.019557356834411621,
"174": 0,
"175": 0,
"176": 21.100000381469727,
"177": 21.099885940551758,
"91": true,
"115": false,
"180": 2894,
"181": 2475,
"182": 2154,
"183": 32704.609375,
"184": 6757,
"185": 128,
"186": 148327.40625,
"31": 19.11199951171875,
"1029": null,
"189": 21.842729568481445,
"190": 23.559999465942383,
"191": 0.0,
"192": 20.700000762939453,
"193": 23.100000381469727,
"194": 0.0,
"195": 2,
"196": 2,
"197": 127,
"198": 0,
"199": 25,
"200": 0,
"201": 0,
"202": 118,
"203": 0,
"204": 0,
"205": 0,
"206": 0,
"207": 0,
"208": 0,
"209": 0,
"210": 0,
"211": 3,
"212": 0,
"213": "192.168.0.162",
"214": "255.255.255.0",
"121": true,
"7": 184,
"217": "192.168.0.162",
"1030": 28.7421875,
"219": "192.168.0.1",
"220": 1,
"221": 4,
"222": 60,
"37": null,
"224": 12,
"225": "TP-Link_C293",
"1286": 0,
"38": null,
"178": 30,
"1031": 31.930770874023438,
"127": false,
"1280": 65,
"1281": 50,
"1794": 0,
"1795": 0,
"1284": 0,
"1285": 0,
"1798": true,
"1287": 45,
"1288": 32,
"1289": 32,
"1290": 32,
"1291": 32,
"216": 1,
"131": false,
"9": 1581,
"1032": null,
"179": 7834,
"218": "255.255.255.0",
"133": true,
"49": 0,
"1792": 7,
"223": 1,
"215": "192.168.0.1",
"19": 0,
"55": 0,
"1034": null,
"143": false,
"2048": 1,
"97": false,
"61": 8,
"1035": null,
"151": 80,
"67": 8,
"68": 0,
"158": 2,
"73": false,
"1549": false,
"1793": 0.0,
"79": false,
"188": 1,
"187": 0.0,
"2049": 2,
"84": true,
"85": true
}
}
Loading

0 comments on commit a3fd6c1

Please sign in to comment.