def get_connector_secrets_form() -> ConnectorSecretsForm: return ConnectorSecretsForm( documentation_md=(Path(os.path.dirname(__file__)) / 'doc.md').read_text(), secrets_schema=OAuth2ConnectorConfig.schema(), )
def test_should_return_connector_config_form(): assert (get_connector_secrets_form(GoogleSheets2Connector).secrets_schema == OAuth2ConnectorConfig.schema()) assert get_connector_secrets_form(MongoConnector) is None