There's just a few tests right now, only those that don't test against actual interactions with Digitalocean.
Here's what I think could be the approach for each function:
Right now, we can add tests of failure behavior and any other thigns that don't test against requests to Digitalocean - see current tests for examples
Start on testing real functionality of functions, but with mocked data. This may have to take different approaches with different functions. For spaces functions that wrap aws, those internally use httr. For other functions, I can convert internal use of httr to crul and then we can use vcr package I'm working on for caching requests for tests - should be ready to go soon.
There's just a few tests right now, only those that don't test against actual interactions with Digitalocean.
Here's what I think could be the approach for each function:
httr
. For other functions, I can convert internal use ofhttr
tocrul
and then we can usevcr
package I'm working on for caching requests for tests - should be ready to go soon.