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 = [{'selector-type': 'DICT_SELECTOR', 'table-name': 'fake_table', 'translation-type': 'HDICT', 'field-translators': ({'fieldname': 'id', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'name', 'translator': {'translation-type': 'VALUE'}})}]
execute(action, action_args)
fake_translator = {'selector-type': 'DICT_SELECTOR', 'table-name': 'fake_table', 'translation-type': 'HDICT', 'field-translators': ({'fieldname': 'id', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'name', 'translator': {'translation-type': 'VALUE'}})}
static get_datasource_info()
initialize_update_method()
update_fake_table()
value_trans = {'translation-type': 'VALUE'}