-
Notifications
You must be signed in to change notification settings - Fork 55
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
[BUG]: unit Test Server Always fails #147
Comments
GET http://127.0.0.1:8503/gesamtlast_simple?year_energy=2000& produces a different result than before. I do not know whether this is a bug or whether this is acceptable? If the result of this GET call is not static the test has to be changed. Otherwise there is some difference in the calculation of the result. Result used to be (and is expected to be): Result now is |
reason is still PR #135 which was added without all tests passing. |
* Don´t rely on calculation per specific day. For now we can assume 48 values (2 days prediction).
I just checked the results vs a old version (03.10.) and I get the new values. 0 | 0.1239736903705896 @drbacke I'm sorry I'd like to contribute but id like to stick to what I can. And I'm not good at git stuff. |
* Don´t rely on calculation per specific day. For now we can assume 48 values (2 days prediction).
* Don´t rely on calculation per specific day, just verify length.
* Don´t rely on calculation per specific day, just verify length.
I think this is due to numeric reasons. Multiply the year_energy by 1000 and the results will be more stable. Its normailized in Wh. |
PR #125 which activated server testing by #135 was tested by me on the 8th of October. There it worked. Any commit in here 565e721, 9e3dd27, 2882ca4, 6b545c5, d804f5d, 929d7e0, b6d0ef2, 3c1482c changed the behaviour. Edit: There seems to be a date/time dependency in the calculation, so my blame on the above commits is wrong. |
I don´t think there is a numerical issue here, just one day offset (the overlapping calculated numbers are exactly even). /gesamtlast_simple has some forecast based on start date (date.now) + 48 hours. So either we fixate the requested interval or we don´t care about numbers. Imho an integration test should just check the correct output format while the unit tests have to verify calculations. |
I agree, take server tests as integration tests and go for the number of values only. |
|
My conclusion:
|
I agree with @b0661 |
* Don´t rely on calculation per specific day, just verify length.
* Don´t rely on calculation per specific day, just verify length.
Describe the issue:
BUG]: unit Test Server Always fails
Reproduceable code example:
No response
Error message:
No response
Version information:
The text was updated successfully, but these errors were encountered: