WattTime / pyiso

Python client libraries for ISO and other power grid data sources.
http://pyiso.readthedocs.org/
Other
237 stars 110 forks source link

Port functionality from a number of integration tests back to their unit tests using mocked responses #154

Closed r24mille closed 2 years ago

r24mille commented 6 years ago

As I split unit tests and integration tests for #130 the amount of test coverage for a number of clients fell significantly due to it now being tucked away in the integration tests directory. Some key examples being:

There may possibly be others. We should coverage from a number of these test methods back into unit tests, using mocked requests rather than real requests.

Note: By porting them back we should not make network requests but should instead mock responses for URLs that we expect the test to request.