Repository navigation
Test the default openapi example - #92
Merged
Merged
Conversation
the app shows on "/" an openapi/swagger screen which can be used to est the api of this app. Create a testcase for exactly this call .
in the default case p_max_imp_exc has no value
andig
reviewed
Oct 4, 2026
andig
reviewed
Oct 4, 2026
andig
reviewed
Oct 4, 2026
andig
marked this pull request as draft
October 4, 2026 13:10
The example on / sent a zero length step, a 500 from dividing by it, and a battery with c_max and d_max 0, whose charge discharge gate was left in no row and came back without a value, failing the feasibility check as Not Solved. - reject a non-positive dt with a 400 naming the step, prefill dt with 3600 - skip the gate for a battery that can neither charge nor discharge - test the example generated from /swagger.json instead of storing it
andig
marked this pull request as ready for review
October 24, 2026 09:10
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
when calling the root ("/") one gets a test page for the API.
This page contains a default (empty) set of parameters.
Add these parameters to the test cases, as we don't want this case to fail.
As they fail, add a fix for this case.