ashb commented on code in PR #47451:
URL: https://github.com/apache/airflow/pull/47451#discussion_r1983493624
##########
devel-common/src/tests_common/pytest_plugin.py:
##########
@@ -1823,3 +1823,12 @@ def override_caplog(request):
import airflow.logging_config
airflow.logging_config.configure_logging()
+
+
[email protected](autouse=True, scope="session")
+def add_task_sdk_test_folder_to_pythonpath():
+ old_path = sys.path.copy()
+ sys.path.append((AIRFLOW_SOURCES_ROOT_DIR / "task-sdk" /
"tests").as_posix())
+ yield
+ sys.path.clear()
+ sys.path.extend(old_path)
Review Comment:
Is this only needed (here) because of the open lineage test import? If so
lets remove this, change that (it's not much code to just copy over) and If
this is needed for task_sdk own test then put
https://docs.pytest.org/en/7.1.x/reference/reference.html#confval-pythonpath in
`task-sdk/pyproject.toml` file?
--
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]