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