The congress.tests.datasources.test_datasource_driver Module¶
-
class
congress.tests.datasources.test_datasource_driver.TestDatasourceDriver(*args, **kwargs)¶ Bases:
congress.tests.base.TestCase-
compute_hash(obj)¶
-
setUp()¶
-
test_build_table_deps()¶
-
test_check_for_duplicate_table_names_hdict_hdict()¶
-
test_check_for_duplicate_table_names_hdict_list()¶
-
test_check_for_duplicate_table_names_in_different_translator()¶
-
test_check_for_duplicate_table_names_nested_list_list()¶
-
test_check_no_extra_params()¶
-
test_check_no_extra_params_nested_hdict()¶
-
test_check_no_extra_params_nested_list_hdict()¶
-
test_convert_bad_params()¶
-
test_convert_hdict_hdict_parent_key_with_id()¶
-
test_convert_hdict_hdict_parent_key_without_id()¶
-
test_convert_hdict_list_parent_key_with_id()¶
-
test_convert_hdict_list_parent_key_without_id()¶
-
test_convert_hdict_vdict_parent_key_with_id()¶
-
test_convert_hdict_vdict_parent_key_without_id()¶
-
test_convert_list_with_id()¶
-
test_convert_list_with_id_function()¶
-
test_convert_list_with_sublist()¶
-
test_convert_list_without_id()¶
-
test_convert_recursive_hdict_extract_subfields()¶
-
test_convert_recursive_hdict_hdict()¶
-
test_convert_recursive_hdict_single_fields()¶
-
test_convert_recursive_hdict_single_fields_default_col()¶
-
test_convert_recursive_hdict_single_fields_empty_fields()¶
-
test_convert_recursive_hdict_sublists()¶
-
test_convert_recursive_hdict_vdict()¶
-
test_convert_vdict_is_none()¶
-
test_convert_vdict_list()¶
-
test_convert_vdict_list_parent_key_with_id()¶
-
test_convert_vdict_list_parent_key_without_id()¶
-
test_convert_vdict_with_id()¶
-
test_convert_vdict_with_id_function()¶
-
test_convert_vdict_without_id()¶
-
test_get_row_data()¶
-
test_get_schema()¶
-
test_get_schema_with_hdict_id_function()¶
-
test_get_schema_with_hdict_parent()¶
-
test_get_schema_with_table_reuse()¶
-
test_get_schema_with_vdict_parent()¶
-
test_get_tablename()¶
-
test_get_tablenames()¶
-
test_getting_parent_key_from_nested_tables()¶
-
test_in_list_results_hdict_hdict()¶
-
test_init_consistence_with_exception(*args, **keywargs)¶
-
test_invalid_translation_type()¶
-
test_nested_get_tables()¶
-
test_no_key_col_in_vdict()¶
-
test_no_parent_key_id_col()¶
-
test_no_val_col_in_list()¶
-
test_no_val_col_in_vdict()¶
-
test_objects_extract_func()¶
-
test_parent_col_name_in_hdict()¶
-
test_parent_col_name_in_list()¶
-
test_parent_col_name_in_vdict()¶
-
test_recursive_objects_extract_func()¶
-
test_translator_key_elements()¶ Test for keys of all translator.
-
test_update_state()¶
-
test_update_state_on_changed()¶
-
test_update_state_on_changed_with_changed_raw_data()¶
-
test_update_state_on_changed_with_empty_raw_data()¶
-
test_update_state_on_changed_with_wrong_eq()¶
-
test_update_state_with_none_row_data()¶
-
test_update_state_with_part_none_row_data()¶
-
test_update_state_with_undefined_table()¶
-
-
class
congress.tests.datasources.test_datasource_driver.TestExecutionDriver(*args, **kwargs)¶ Bases:
congress.tests.base.TestCase-
class
ExtendedExecutionDriver¶ Bases:
congress.datasources.datasource_driver.ExecutionDriverSubclass of test target.
Execution Driver is an add-on class for datasource driver so it’s assumed to have heartbeat_callbacks variable defined in DataService class.
-
setUp()¶
-
test_add_executable_client_methods()¶
-
test_execute_api()¶
-
test_get_actions_order_by_name()¶
-
test_get_method_nested()¶
-
test_get_method_top()¶
-
test_request_execute_with_wait(*args, **keywargs)¶
-
test_request_execute_without_wait(*args, **keywargs)¶
-
class
-
class
congress.tests.datasources.test_datasource_driver.TestPollingDataSourceDriver(*args, **kwargs)¶ Bases:
congress.tests.base.TestCase-
class
TestDriver¶ Bases:
congress.datasources.datasource_driver.PollingDataSourceDriver
-
setUp()¶
-
test_add_duplicated_update_method()¶
-
test_add_update_method()¶
-
test_cleanup(*args, **keywargs)¶
-
test_evaluate_lazy_table()¶
-
test_init_consistence(*args, **keywargs)¶
-
class
-
class
congress.tests.datasources.test_datasource_driver.TestPushedDriver(*args, **kwargs)¶ Bases:
congress.tests.base.SqlTestCase-
class
TestDriver(args=None)¶ Bases:
congress.datasources.datasource_driver.PushedDataSourceDriver-
TRANSLATORS= [{‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘id’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘name’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘status’}), ‘translation-type’: ‘HDICT’, ‘selector-type’: ‘DICT_SELECTOR’, ‘table-name’: ‘test_translator’}]¶
-
test_translator= {‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘id’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘name’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘status’}), ‘translation-type’: ‘HDICT’, ‘selector-type’: ‘DICT_SELECTOR’, ‘table-name’: ‘test_translator’}¶
-
value_trans= {‘translation-type’: ‘VALUE’}¶
-
-
setUp()¶
-
test_init_push_driver()¶
-
test_persist_data(*args, **keywargs)¶
-
test_push_entire_data(*args, **keywargs)¶
-
class