def fixture_obo_only_config(): return BdkConfig(host="acme.symphony.com", app={ "appId": "app", "privateKey": { "path": "/path/to/key.pem" } })
def load_from_content(cls, content: str) -> BdkConfig: """Load config from a string containing all config :param content: Content of the config file as one string :return: Symphony bot configuration object """ data_dict = BdkConfigParser.parse(content) return BdkConfig(**data_dict)
def fixture_bare_df_loop(session_service): # patch.multiple called in order to be able to instantiate AbstractDatafeedLoop with patch.multiple(AbstractDatafeedLoop, __abstractmethods__=set()): mock_df = AbstractDatafeedLoop(DatafeedApi(AsyncMock()), session_service, None, BdkConfig()) mock_df._stop_listener_tasks = AsyncMock() mock_df._prepare_datafeed = AsyncMock() mock_df._run_loop_iteration = AsyncMock() return mock_df
def fixture_config(): return BdkConfig(host=HOST)
def fixture_invalid_app_id_config(): return BdkConfig(host="acme.symphony.com", app={"privateKey": { "path": "/path/to/key.pem" }})
def fixture_invalid_username_config(): return BdkConfig(host="acme.symphony.com", bot={"privateKey": { "path": "/path/to/key.pem" }})