The congress.tests.fake_datasource
Module¶
-
class
congress.tests.fake_datasource.
FakeDataSource
(name=”, args=None)¶ Bases:
congress.datasources.datasource_driver.PollingDataSourceDriver
,congress.datasources.datasource_driver.PushedDataSourceDriver
,congress.datasources.datasource_driver.ExecutionDriver
-
TRANSLATORS
= [{‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘id’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘name’}), ‘translation-type’: ‘HDICT’, ‘selector-type’: ‘DICT_SELECTOR’, ‘table-name’: ‘fake_table’}]¶
-
execute
(action, action_args)¶
-
fake_translator
= {‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘id’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘name’}), ‘translation-type’: ‘HDICT’, ‘selector-type’: ‘DICT_SELECTOR’, ‘table-name’: ‘fake_table’}¶
-
static
get_datasource_info
()¶
-
initialize_update_method
()¶
-
update_fake_table
()¶
-
value_trans
= {‘translation-type’: ‘VALUE’}¶
-