mobuchowski commented on code in PR #29940:
URL: https://github.com/apache/airflow/pull/29940#discussion_r1156131429


##########
tests/providers/openlineage/conftest.py:
##########
@@ -0,0 +1,72 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# Copyright 2018-2023 contributors to the OpenLineage project
+# SPDX-License-Identifier: Apache-2.0
+from __future__ import annotations
+
+import logging
+import os
+from unittest.mock import patch
+
+import pytest
+
+log = logging.getLogger(__name__)
+
+
+@pytest.fixture(scope="function")
+def remove_redshift_conn():
+    if "REDSHIFT_CONN" in os.environ:
+        del os.environ["REDSHIFT_CONN"]
+    if "WRITE_SCHEMA" in os.environ:
+        del os.environ["WRITE_SCHEMA"]
+
+
+@pytest.fixture(scope="function")
+def we_module_env():
+    os.environ["REDSHIFT_CONN"] = "postgresql://user:passw...@host.io:1234/db"
+    os.environ["WRITE_SCHEMA"] = "testing"
+
+
+@pytest.fixture(scope="function")
+def dagbag():
+    log.debug("dagbag()")
+    os.environ["AIRFLOW__CORE__SQL_ALCHEMY_CONN"] = "sqlite://"

Review Comment:
   Removed this too



##########
tests/providers/openlineage/conftest.py:
##########
@@ -0,0 +1,72 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# Copyright 2018-2023 contributors to the OpenLineage project
+# SPDX-License-Identifier: Apache-2.0
+from __future__ import annotations
+
+import logging
+import os
+from unittest.mock import patch
+
+import pytest
+
+log = logging.getLogger(__name__)
+
+
+@pytest.fixture(scope="function")
+def remove_redshift_conn():
+    if "REDSHIFT_CONN" in os.environ:
+        del os.environ["REDSHIFT_CONN"]
+    if "WRITE_SCHEMA" in os.environ:
+        del os.environ["WRITE_SCHEMA"]
+
+
+@pytest.fixture(scope="function")
+def we_module_env():
+    os.environ["REDSHIFT_CONN"] = "postgresql://user:passw...@host.io:1234/db"
+    os.environ["WRITE_SCHEMA"] = "testing"
+
+
+@pytest.fixture(scope="function")
+def dagbag():
+    log.debug("dagbag()")
+    os.environ["AIRFLOW__CORE__SQL_ALCHEMY_CONN"] = "sqlite://"
+    os.environ["OPENLINEAGE_NAMESPACE"] = "test-marquez"
+
+    import airflow.utils.db as db_utils
+    from airflow import settings
+
+    db_utils.resetdb(settings.RBAC)

Review Comment:
   Removed.



-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to