digitalocean / pydo

Official DigitalOcean Python Client based on the DO OpenAPIv3 specification
https://pypi.org/project/pydo/
Apache License 2.0
81 stars 13 forks source link

Add Mocked Tests: Apps (part 1) #245

Open danaelhe opened 11 months ago

danaelhe commented 11 months ago

Overview Add more test coverage for Pydo, specifically for Apps

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

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 apps. get_app_cpu_percentage_metrics, apps. get_app_restart_count_metrics_yml, apps.get_app_memory_percentage_metrics
  6. API documentation is here
  7. Pydo Documentation is here
Yordaniss commented 11 months ago

Hey @danaelhe . I would like to work on this issue. Can you please assign me to this? 🙂