tangier_api package

Submodules

tangier_api.exceptions module

exception tangier_api.exceptions.APICallError[source]

Bases: BaseException

exception tangier_api.exceptions.APIError[source]

Bases: BaseException

tangier_api.helpers module

tangier_api.helpers.date_ranges(start_date, end_date, date_format='%Y-%m-%d')[source]

tangier_api.settings module

tangier_api.settings.read_config(keys)[source]

We don’t want a failed import for bad config, we just want to set everything that is not in the config file/region set to None :param keys: (iterable) default keys to set to None :return:

tangier_api.tests module

class tangier_api.tests.TestLocationConnection(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_add_show_update_list_delete()[source]
class tangier_api.tests.TestProviderConnection(methodName='runTest')[source]

Bases: unittest.case.TestCase

These tests all use provider_primary_key rather than emp_id since I only query by emp_id. Please provide implementations for emp_id if you need them.

test_get_provider_info()[source]
test_provider_info_values_list()[source]
class tangier_api.tests.TestScheduleConnection(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_get_schedule()[source]
test_get_schedule_values_list()[source]
test_get_schedules()[source]
tangier_api.tests.generate_empty_list_error_response(test, list_name)[source]

tangier_api.wrappers module

tangier_api.wrappers.debug_options(method)[source]
tangier_api.wrappers.handle_response(method)[source]

Module contents