Skip to content

Conversation

@linknum23
Copy link

@linknum23 linknum23 commented Jan 9, 2025

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

@linknum23
Copy link
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
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

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?

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

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.

3 participants