Skip to content

Add tests using openapi examples - #10

Open
linknum23 wants to merge 6 commits into
mainfrom
add-tests
Open

Add tests using openapi examples#10
linknum23 wants to merge 6 commits into
mainfrom
add-tests

Conversation

@linknum23

@linknum23 linknum23 commented Jan 9, 2025

Copy link
Copy Markdown

This adds tests for the AmpliPi client validating them against the latest AmpliPi API spec.

@linknum23

Copy link
Copy Markdown
Author

@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.

@linknum23

Copy link
Copy Markdown
Author

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.

@SteveMicroNova

Copy link
Copy Markdown

I've removed the changes I made to the 0.4.6 that I'd mirrored from those you made for 0.4.5 and the tests still seem to pass, I think that means we're good here?

Comment thread pyamplipi/test_amplipi.py
def create_dynamic_tests():
""" Generated the test set from the OpenAPI specifications"""
spec_paths = [
'specs/0.4.5.yaml'

Copy link
Copy Markdown

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants