jscheffl commented on code in PR #66979:
URL: https://github.com/apache/airflow/pull/66979#discussion_r3252431015


##########
providers/openlineage/tests/system/openlineage/operator.py:
##########
@@ -197,15 +197,15 @@ def __init__(
         self,
         event_templates: dict[str, dict] | None = None,
         file_path: str | None = None,
-        env: Environment = setup_jinja(),
+        env: Environment | None = None,
         allow_duplicate_events_regex: str | None = None,
         clear_variables: bool = True,
         **kwargs,
     ):
         super().__init__(**kwargs)
         self.event_templates = event_templates
         self.file_path = file_path
-        self.env = env
+        self.env = env if env is not None else setup_jinja()

Review Comment:
   ```suggestion
           self.env = env or setup_jinja()
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to