JinjaQuery
- class q2_sdk.models.cores.queries.jinja_query.JinjaQuery(logger, templates_path, request_template, mock_response_template, context=None, mock_failure=False, collapse_whitespace=False)[source]
Same behavior as BaseQuery, though build and mock are handled by passed in Jinja template
- Parameters:
logger (
TypeAliasType
) – Reference to calling request’s logger (self.logger in your extension)templates_path (
Path
) – Path to the templatesrequest_template (
str
) – Filename for the template for the requestmock_response_template (
str
) – Filename for the mock responsecontext (
dict
|None
) – Context to use during renderingmock_failure – Inherited from base
collapse_whitespace – Removes new lines and whitespace around it