pydo icon indicating copy to clipboard operation
pydo copied to clipboard

Add Mocked Tests: Uptime (part 1)

Open danaelhe opened this issue 2 years ago • 3 comments

Overview Add more test coverage for Pydo, specifically for Uptime

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_uptime.py
  5. Add tests for uptime.create_alert, uptime.create_check, uptime.delete_alert, uptime.delete_check, uptime.get_alert, uptime.get_check
  6. API documentation is here
  7. Pydo Documentation is here

danaelhe avatar Sep 29 '23 14:09 danaelhe

started working on this

dhananjay0610 avatar Oct 01 '23 03:10 dhananjay0610

@danaelhe you can close this issue. completed in #219

work-mohit avatar Oct 04 '23 05:10 work-mohit

@danaelhe you can close this issue. completed in #219

PR #219 closes Github Issue #213 ! This one's still free.

danaelhe avatar Oct 04 '23 19:10 danaelhe

I've started working on this.

giftcup avatar Oct 19 '24 01:10 giftcup