Skip to content
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

Streamline API testing #70

Open
3 tasks
amstilp opened this issue Mar 18, 2022 · 0 comments
Open
3 tasks

Streamline API testing #70

amstilp opened this issue Mar 18, 2022 · 0 comments

Comments

@amstilp
Copy link
Contributor

amstilp commented Mar 18, 2022

Consider having methods of the AnVILAPIMockTestMixin that return or sets the expected json responses for various methods. That way, if the underlying API response changes, the tests are easier to update.

  • Add methods to AnVILAPIMockTestMixin to get and/or set the expected json response for various methods.
  • Modify test_models_anvil_api_unit to use these methods where appropriate.
  • Modify test_views to use these methods where appropriate.
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

No branches or pull requests

1 participant