Wiredcraft / dopy

Digital Ocean Python
MIT License
95 stars 62 forks source link

V2 only support #36

Closed zbal closed 3 years ago

zbal commented 9 years ago

DigitalOcean deprecated API v1, a lot of the code was V1 specific and is now not required and is dead code.

Revamp the code to make it v2 only.

sunsongxp commented 8 years ago

DO API V2 only support coding is finished. Writing tests.

sunsongxp commented 8 years ago

The tool I am using for testing dopy is responses https://github.com/getsentry/responses. This is a project mocking requests (python package). To test this project, the idea is to test the requests and response content of each api communication, instead of communicating through real api, the responses test tool imitate that process, then make sure in each test, the request/response content are valid to pass tests.

sunsongxp commented 8 years ago

Code refactoring is basically finished, tests covers 50% of dopy/manager.py. Needs to make sure it's compatible to the version before refactoring.

sunsongxp commented 8 years ago

Still writing tests, it is now 71% of dopy/manage.py.