Skip to content

Subscription tests and automatically coerce subscription id to string #36

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

armstrys
Copy link
Contributor

Adding a test that makes sure content in the subscription class is consistent with expected types when converted to json and back. Notably, the current class doesn't force the id to be a string.

I've also removed the default filters value of None since it is currently unused in the body of the function and isn't a valid option for a subscription - maybe it makes sense to replace this with an empty Filters object instead?

Copy link
Owner

@jeffthibault jeffthibault left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Just added a couple suggestions.

@armstrys
Copy link
Contributor Author

Those changes both make sense to me!

Co-authored-by: Jeff Thibault <jdthibault2@gmail.com>
@armstrys
Copy link
Contributor Author

No worries. This is all helpful to me :)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants