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: Image Actions #211

Closed
danaelhe opened this issue Sep 29, 2023 · 1 comment
Closed

Add Mocked Tests: Image Actions #211

danaelhe opened this issue Sep 29, 2023 · 1 comment
Assignees
Labels
hacktoberfest A good hacktoberfest issue!

Comments

@danaelhe
Copy link
Member

danaelhe commented Sep 29, 2023

Overview
Add more test coverage for Pydo, specifically for Image Actions

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. Create file: tests/mocked/test_image_actions.py
  5. Add tests for image_actions.get, image_actions.list, image_actions.post
  6. API documentation is here
  7. Pydo Documentation is here
@danaelhe danaelhe added the hacktoberfest A good hacktoberfest issue! label Sep 29, 2023
@dhananjay0610
Copy link

started working on this

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

No branches or pull requests

3 participants