osc_lib.tests.api package

Submodules

osc_lib.tests.api.fakes module

API Test Fakes

class osc_lib.tests.api.fakes.TestSession(*args, **kwargs)

Bases: osc_lib.tests.utils.TestCase

BASE_URL = 'https://api.example.com:1234/test'
setUp()

osc_lib.tests.api.test_api module

Base API Library Tests

class osc_lib.tests.api.test_api.TestBaseAPIArgs(*args, **kwargs)

Bases: osc_lib.tests.api.fakes.TestSession

setUp()
test_baseapi_request_session()
test_baseapi_request_url_path()
class osc_lib.tests.api.test_api.TestBaseAPICreate(*args, **kwargs)

Bases: osc_lib.tests.api.fakes.TestSession

setUp()
test_baseapi_create_post()
test_baseapi_create_put()
test_baseapi_delete()
class osc_lib.tests.api.test_api.TestBaseAPIDefault(*args, **kwargs)

Bases: osc_lib.tests.api.fakes.TestSession

setUp()
test_baseapi_request_session()
test_baseapi_request_url()
test_baseapi_request_url_path()
class osc_lib.tests.api.test_api.TestBaseAPIFind(*args, **kwargs)

Bases: osc_lib.tests.api.fakes.TestSession

setUp()
test_baseapi_find_attr_by_id()
test_baseapi_find_attr_by_name()
test_baseapi_find_attr_path_resource()
test_baseapi_find_bulk_dict()
test_baseapi_find_bulk_none()
test_baseapi_find_bulk_one()
test_baseapi_find_bulk_two()
class osc_lib.tests.api.test_api.TestBaseAPIList(*args, **kwargs)

Bases: osc_lib.tests.api.fakes.TestSession

setUp()
test_baseapi_list_body()
test_baseapi_list_detailed()
test_baseapi_list_filtered()
test_baseapi_list_no_args()
test_baseapi_list_params()
test_baseapi_list_wrapped()

osc_lib.tests.api.test_utils module

API Utilities Library Tests

class osc_lib.tests.api.test_utils.TestBaseAPIFilter(*args, **kwargs)

Bases: osc_lib.tests.api.fakes.TestSession

The filters can be tested independently

setUp()
test_simple_filter_attr_only()
test_simple_filter_attr_value()
test_simple_filter_no_attr()
test_simple_filter_none()
test_simple_filter_prop_attr_only()
test_simple_filter_prop_attr_value()

Module contents