-
Notifications
You must be signed in to change notification settings - Fork 0
Add tests using openapi examples #10
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
base: main
Are you sure you want to change the base?
Conversation
TODO: Fix the AmpliPi spec generation to make these examples valid
This reverts commit 5f13460.
|
@SteveMicroNova can you check to see that these tests make sense? I didn't want to release them with the last changes for simplicity but they provide some decent protection going forward. |
|
There are a lot of changes here, so it probably makes sense to look through them commit by commit since they are organized as a stack of changes. |
|
I've removed the changes I made to the |
| def create_dynamic_tests(): | ||
| """ Generated the test set from the OpenAPI specifications""" | ||
| spec_paths = [ | ||
| 'specs/0.4.5.yaml' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is related to why tests are passing regardless of 0.4.6 state
This adds tests for the AmpliPi client validating them against the latest AmpliPi API spec.