godbout / alfred-time

Start and stop tracking time with Toggl, Harvest, Everhour or Clockify through Alfred 4. ⏰️
MIT License
110 stars 8 forks source link

improve tests regarding API calls? #31

Closed godbout closed 4 years ago

godbout commented 4 years ago

currently API calls are real and need to be spaces with sleep(1) because it seems that sometimes the call are too fast (huh?). need to handle that better. mock the calls probably?

godbout commented 4 years ago

at the same time we don't own the API or the third party libraries, so shouldn't we hit the API to be sure?

godbout commented 4 years ago

decided to keep testing against the real APIs.