civis.tests.create_client_mock

civis.tests.create_client_mock(cache=None)[source]

Create an APIClient mock from a cache of the API spec

Parameters:
cachestr, optional

Location of the API spec on the local filesystem. If None or not given, the default API spec will be used.

Returns:
mock.Mock

A Mock object which looks like an APIClient and which will error if any method calls have non-existent / misspelled parameters