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

Add Mocked Tests: Droplets (part 1) #208

Closed
danaelhe opened this issue Sep 28, 2023 · 2 comments · Fixed by #225
Closed

Add Mocked Tests: Droplets (part 1) #208

danaelhe opened this issue Sep 28, 2023 · 2 comments · Fixed by #225
Labels
hacktoberfest A good hacktoberfest issue!

Comments

@danaelhe
Copy link
Member

danaelhe commented Sep 28, 2023

Overview
Add more test coverage for Pydo, specifically for droplets

Mocked Tests: tests/mocked/
Tests in the mocked directory include:

  • Tests that validate the generated client has all the expected classes and methods for the respective API resources and operations.
  • Tests that exercise individual operations against mocked responses.

These tests do not act against the real API so no real resources are created.

To run mocked tests, run:

make test-mocked

Instructions

  1. Clone this repo.
  2. If you haven't already, install Python (version: >= 3.7.2) through their official installer.
  3. CD into the directory and run make install
  4. View file: tests/mocked/test_droplets.py
  5. Add tests for droplets.destroy_by_tag, droplets.list_backups, droplets.list_snapshots, droplets.list_kernels, droplets.list_firewalls, droplets.list_neighbors, databases.list_associated_resources
  6. API documentation is here
  7. Pydo Documentation is here
@danaelhe danaelhe added the hacktoberfest A good hacktoberfest issue! label Sep 28, 2023
@danaelhe danaelhe changed the title Add More Mocked Tests: Droplets (part 1) Add Mocked Tests: Droplets (part 1) Sep 28, 2023
@work-mohit
Copy link
Contributor

Started working on this!

@danaelhe
Copy link
Member Author

danaelhe commented Oct 3, 2023

Addressed in #225 and #223

@danaelhe danaelhe closed this as completed Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest A good hacktoberfest issue!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants