TestGeneralExtractSettings

class tests.general.test_general.TestGeneralExtractSettings(methodName='runTest')[source]

Test cases for extract_settings()

__init__(methodName='runTest')

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

Methods

Methods

test_extract_settings_case_sensitive()

Test extract_settings() can correctly extract DB_ prefixed settings from a class (case sensitive)

test_extract_settings_case_sensitive_fail()

Test extract_settings() returns empty dict for db_ prefix from a class (case sensitive)

test_extract_settings_case_sensitive_lowercase_keys()

Test extract_settings() can correctly extract DB_ prefixed settings from a class (case sensitive + lowercase keys)

test_extract_settings_case_sensitive_lowercase_keys_fail()

Test extract_settings() returns empty dict for db_ prefixed settings from a class (case sensitive + lowercase keys)

test_extract_settings_class()

Test extract_settings() can correctly extract DB_ prefixed settings from a class

test_extract_settings_class_instance()

Test extract_settings() can correctly extract DB_ prefixed settings from a class instance/object

test_extract_settings_class_instance_case_sensitive()

Test extract_settings() can correctly extract DB_ prefixed settings from a class instance/object (case sensitive)

test_extract_settings_class_instance_case_sensitive_fail()

Test extract_settings() returns empty dict for DB_ prefixed settings from a class instance (case sensitive)

test_extract_settings_dict()

Test extract_settings() can correctly extract DB_ prefixed settings from a dict

test_extract_settings_modules()

Test extract_settings() can correctly extract DB_ prefixed settings from a python module

Attributes

Attributes

ex_settings