Skip to content

Commit

Permalink
Remove commented tests
Browse files Browse the repository at this point in the history
  • Loading branch information
klaasnicolaas committed Apr 27, 2024
1 parent 6830ac9 commit 416d23a
Show file tree
Hide file tree
Showing 8 changed files with 613 additions and 666 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,6 @@ jobs:
poetry run coverage combine coverage*/.coverage*
poetry run coverage xml -i
- name: 🚀 Upload coverage report
uses: codecov/[email protected]
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
262 changes: 131 additions & 131 deletions tests/fixtures/forecast.json
Original file line number Diff line number Diff line change
@@ -1,134 +1,134 @@
{
"result": {
"watts": {
"2024-04-26T06:20:17+02:00": 0,
"2024-04-26T07:00:00+02:00": 270,
"2024-04-26T08:00:00+02:00": 481,
"2024-04-26T09:00:00+02:00": 594,
"2024-04-26T10:00:00+02:00": 781,
"2024-04-26T11:00:00+02:00": 869,
"2024-04-26T12:00:00+02:00": 773,
"2024-04-26T13:00:00+02:00": 710,
"2024-04-26T14:00:00+02:00": 620,
"2024-04-26T15:00:00+02:00": 517,
"2024-04-26T16:00:00+02:00": 430,
"2024-04-26T17:00:00+02:00": 325,
"2024-04-26T18:00:00+02:00": 204,
"2024-04-26T19:00:00+02:00": 89,
"2024-04-26T20:00:00+02:00": 38,
"2024-04-26T20:59:23+02:00": 0,
"2024-04-27T06:18:17+02:00": 0,
"2024-04-27T07:00:00+02:00": 194,
"2024-04-27T08:00:00+02:00": 325,
"2024-04-27T09:00:00+02:00": 432,
"2024-04-27T10:00:00+02:00": 514,
"2024-04-27T11:00:00+02:00": 572,
"2024-04-27T12:00:00+02:00": 604,
"2024-04-27T13:00:00+02:00": 602,
"2024-04-27T14:00:00+02:00": 563,
"2024-04-27T15:00:00+02:00": 502,
"2024-04-27T16:00:00+02:00": 422,
"2024-04-27T17:00:00+02:00": 320,
"2024-04-27T18:00:00+02:00": 201,
"2024-04-27T19:00:00+02:00": 87,
"2024-04-27T20:00:00+02:00": 22,
"2024-04-27T21:00:00+02:00": 9,
"2024-04-27T21:01:05+02:00": 0
},
"watt_hours_period": {
"2024-04-26T06:20:17+02:00": 0,
"2024-04-26T07:00:00+02:00": 89,
"2024-04-26T08:00:00+02:00": 376,
"2024-04-26T09:00:00+02:00": 538,
"2024-04-26T10:00:00+02:00": 688,
"2024-04-26T11:00:00+02:00": 825,
"2024-04-26T12:00:00+02:00": 821,
"2024-04-26T13:00:00+02:00": 742,
"2024-04-26T14:00:00+02:00": 665,
"2024-04-26T15:00:00+02:00": 569,
"2024-04-26T16:00:00+02:00": 474,
"2024-04-26T17:00:00+02:00": 378,
"2024-04-26T18:00:00+02:00": 265,
"2024-04-26T19:00:00+02:00": 147,
"2024-04-26T20:00:00+02:00": 64,
"2024-04-26T20:59:23+02:00": 19,
"2024-04-27T06:18:17+02:00": 0,
"2024-04-27T07:00:00+02:00": 67,
"2024-04-27T08:00:00+02:00": 260,
"2024-04-27T09:00:00+02:00": 379,
"2024-04-27T10:00:00+02:00": 473,
"2024-04-27T11:00:00+02:00": 543,
"2024-04-27T12:00:00+02:00": 588,
"2024-04-27T13:00:00+02:00": 603,
"2024-04-27T14:00:00+02:00": 583,
"2024-04-27T15:00:00+02:00": 533,
"2024-04-27T16:00:00+02:00": 462,
"2024-04-27T17:00:00+02:00": 371,
"2024-04-27T18:00:00+02:00": 261,
"2024-04-27T19:00:00+02:00": 144,
"2024-04-27T20:00:00+02:00": 55,
"2024-04-27T21:00:00+02:00": 16,
"2024-04-27T21:01:05+02:00": 0
},
"watt_hours": {
"2024-04-26T06:20:17+02:00": 0,
"2024-04-26T07:00:00+02:00": 89,
"2024-04-26T08:00:00+02:00": 465,
"2024-04-26T09:00:00+02:00": 1003,
"2024-04-26T10:00:00+02:00": 1691,
"2024-04-26T11:00:00+02:00": 2516,
"2024-04-26T12:00:00+02:00": 3337,
"2024-04-26T13:00:00+02:00": 4079,
"2024-04-26T14:00:00+02:00": 4744,
"2024-04-26T15:00:00+02:00": 5313,
"2024-04-26T16:00:00+02:00": 5787,
"2024-04-26T17:00:00+02:00": 6165,
"2024-04-26T18:00:00+02:00": 6430,
"2024-04-26T19:00:00+02:00": 6577,
"2024-04-26T20:00:00+02:00": 6641,
"2024-04-26T20:59:23+02:00": 6660,
"2024-04-27T06:18:17+02:00": 0,
"2024-04-27T07:00:00+02:00": 67,
"2024-04-27T08:00:00+02:00": 327,
"2024-04-27T09:00:00+02:00": 706,
"2024-04-27T10:00:00+02:00": 1179,
"2024-04-27T11:00:00+02:00": 1722,
"2024-04-27T12:00:00+02:00": 2310,
"2024-04-27T13:00:00+02:00": 2913,
"2024-04-27T14:00:00+02:00": 3496,
"2024-04-27T15:00:00+02:00": 4029,
"2024-04-27T16:00:00+02:00": 4491,
"2024-04-27T17:00:00+02:00": 4862,
"2024-04-27T18:00:00+02:00": 5123,
"2024-04-27T19:00:00+02:00": 5267,
"2024-04-27T20:00:00+02:00": 5322,
"2024-04-27T21:00:00+02:00": 5338,
"2024-04-27T21:01:05+02:00": 5338
},
"watt_hours_day": {
"2024-04-26": 6660,
"2024-04-27": 5338
}
"result": {
"watts": {
"2024-04-26T06:20:17+02:00": 0,
"2024-04-26T07:00:00+02:00": 270,
"2024-04-26T08:00:00+02:00": 481,
"2024-04-26T09:00:00+02:00": 594,
"2024-04-26T10:00:00+02:00": 781,
"2024-04-26T11:00:00+02:00": 869,
"2024-04-26T12:00:00+02:00": 773,
"2024-04-26T13:00:00+02:00": 710,
"2024-04-26T14:00:00+02:00": 620,
"2024-04-26T15:00:00+02:00": 517,
"2024-04-26T16:00:00+02:00": 430,
"2024-04-26T17:00:00+02:00": 325,
"2024-04-26T18:00:00+02:00": 204,
"2024-04-26T19:00:00+02:00": 89,
"2024-04-26T20:00:00+02:00": 38,
"2024-04-26T20:59:23+02:00": 0,
"2024-04-27T06:18:17+02:00": 0,
"2024-04-27T07:00:00+02:00": 194,
"2024-04-27T08:00:00+02:00": 325,
"2024-04-27T09:00:00+02:00": 432,
"2024-04-27T10:00:00+02:00": 514,
"2024-04-27T11:00:00+02:00": 572,
"2024-04-27T12:00:00+02:00": 604,
"2024-04-27T13:00:00+02:00": 602,
"2024-04-27T14:00:00+02:00": 563,
"2024-04-27T15:00:00+02:00": 502,
"2024-04-27T16:00:00+02:00": 422,
"2024-04-27T17:00:00+02:00": 320,
"2024-04-27T18:00:00+02:00": 201,
"2024-04-27T19:00:00+02:00": 87,
"2024-04-27T20:00:00+02:00": 22,
"2024-04-27T21:00:00+02:00": 9,
"2024-04-27T21:01:05+02:00": 0
},
"message": {
"code": 0,
"type": "success",
"text": "",
"pid": "D8aH09A5",
"info": {
"latitude": 52.16,
"longitude": 4.47,
"distance": 0,
"place": "34, Vondellaan, Lage Mors, Leiden, Zuid-Holland, Nederland, 2332 AE, Nederland",
"timezone": "Europe/Amsterdam",
"time": "2024-04-26T18:56:01+02:00",
"time_utc": "2024-04-26T16:56:01+00:00"
},
"ratelimit": {
"zone": "IP ADDRESS",
"period": 3600,
"limit": 12,
"remaining": 11
}
"watt_hours_period": {
"2024-04-26T06:20:17+02:00": 0,
"2024-04-26T07:00:00+02:00": 89,
"2024-04-26T08:00:00+02:00": 376,
"2024-04-26T09:00:00+02:00": 538,
"2024-04-26T10:00:00+02:00": 688,
"2024-04-26T11:00:00+02:00": 825,
"2024-04-26T12:00:00+02:00": 821,
"2024-04-26T13:00:00+02:00": 742,
"2024-04-26T14:00:00+02:00": 665,
"2024-04-26T15:00:00+02:00": 569,
"2024-04-26T16:00:00+02:00": 474,
"2024-04-26T17:00:00+02:00": 378,
"2024-04-26T18:00:00+02:00": 265,
"2024-04-26T19:00:00+02:00": 147,
"2024-04-26T20:00:00+02:00": 64,
"2024-04-26T20:59:23+02:00": 19,
"2024-04-27T06:18:17+02:00": 0,
"2024-04-27T07:00:00+02:00": 67,
"2024-04-27T08:00:00+02:00": 260,
"2024-04-27T09:00:00+02:00": 379,
"2024-04-27T10:00:00+02:00": 473,
"2024-04-27T11:00:00+02:00": 543,
"2024-04-27T12:00:00+02:00": 588,
"2024-04-27T13:00:00+02:00": 603,
"2024-04-27T14:00:00+02:00": 583,
"2024-04-27T15:00:00+02:00": 533,
"2024-04-27T16:00:00+02:00": 462,
"2024-04-27T17:00:00+02:00": 371,
"2024-04-27T18:00:00+02:00": 261,
"2024-04-27T19:00:00+02:00": 144,
"2024-04-27T20:00:00+02:00": 55,
"2024-04-27T21:00:00+02:00": 16,
"2024-04-27T21:01:05+02:00": 0
},
"watt_hours": {
"2024-04-26T06:20:17+02:00": 0,
"2024-04-26T07:00:00+02:00": 89,
"2024-04-26T08:00:00+02:00": 465,
"2024-04-26T09:00:00+02:00": 1003,
"2024-04-26T10:00:00+02:00": 1691,
"2024-04-26T11:00:00+02:00": 2516,
"2024-04-26T12:00:00+02:00": 3337,
"2024-04-26T13:00:00+02:00": 4079,
"2024-04-26T14:00:00+02:00": 4744,
"2024-04-26T15:00:00+02:00": 5313,
"2024-04-26T16:00:00+02:00": 5787,
"2024-04-26T17:00:00+02:00": 6165,
"2024-04-26T18:00:00+02:00": 6430,
"2024-04-26T19:00:00+02:00": 6577,
"2024-04-26T20:00:00+02:00": 6641,
"2024-04-26T20:59:23+02:00": 6660,
"2024-04-27T06:18:17+02:00": 0,
"2024-04-27T07:00:00+02:00": 67,
"2024-04-27T08:00:00+02:00": 327,
"2024-04-27T09:00:00+02:00": 706,
"2024-04-27T10:00:00+02:00": 1179,
"2024-04-27T11:00:00+02:00": 1722,
"2024-04-27T12:00:00+02:00": 2310,
"2024-04-27T13:00:00+02:00": 2913,
"2024-04-27T14:00:00+02:00": 3496,
"2024-04-27T15:00:00+02:00": 4029,
"2024-04-27T16:00:00+02:00": 4491,
"2024-04-27T17:00:00+02:00": 4862,
"2024-04-27T18:00:00+02:00": 5123,
"2024-04-27T19:00:00+02:00": 5267,
"2024-04-27T20:00:00+02:00": 5322,
"2024-04-27T21:00:00+02:00": 5338,
"2024-04-27T21:01:05+02:00": 5338
},
"watt_hours_day": {
"2024-04-26": 6660,
"2024-04-27": 5338
}
},
"message": {
"code": 0,
"type": "success",
"text": "",
"pid": "D8aH09A5",
"info": {
"latitude": 52.16,
"longitude": 4.47,
"distance": 0,
"place": "34, Vondellaan, Lage Mors, Leiden, Zuid-Holland, Nederland, 2332 AE, Nederland",
"timezone": "Europe/Amsterdam",
"time": "2024-04-26T18:56:01+02:00",
"time_utc": "2024-04-26T16:56:01+00:00"
},
"ratelimit": {
"zone": "IP ADDRESS",
"period": 3600,
"limit": 12,
"remaining": 11
}
}
}
}
Loading

0 comments on commit 416d23a

Please sign in to comment.