digitalocean / pydo

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

Add mocked tests: update database user #341

Closed loosla closed 2 months ago

loosla commented 2 months ago

Overview

Enhance test coverage by adding mocked test for the function that updates database user.

Mocked 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. Open file: tests/mocked/test_databases.py
  5. Add a mocked test for databases.update_user (you can use test_databases_get_user for reference)
  6. API documentation: update_user
gagan-bhullar-tech commented 2 months ago

@loosla can you please review PR. Please assign to me.