uranusjr commented on code in PR #43902:
URL: https://github.com/apache/airflow/pull/43902#discussion_r1841706919
##########
providers/tests/openlineage/plugins/test_macros.py:
##########
@@ -39,37 +44,19 @@ def test_lineage_job_name():
dag_id="dag_id",
task_id="task_id",
try_number=1,
- execution_date=datetime(2020, 1, 1, 1, 1, 1, 0, tzinfo=timezone.utc),
+ **{LOGICAL_DATE_KEY: datetime(2020, 1, 1, 1, 1, 1, 0,
tzinfo=timezone.utc)},
)
assert lineage_job_name(task_instance) == "dag_id.task_id"
-def test_lineage_run_id():
- task_instance = mock.MagicMock(
- dag_id="dag_id",
- task_id="task_id",
- dag_run=mock.MagicMock(run_id="run_id"),
- execution_date=datetime(2020, 1, 1, 1, 1, 1, 0, tzinfo=timezone.utc),
- try_number=1,
- )
-
- call_result1 = lineage_run_id(task_instance)
- call_result2 = lineage_run_id(task_instance)
-
- # random part value does not matter, it just have to be the same for the
same TaskInstance
- assert call_result1 == call_result2
- # execution_date is used as most significant bits of UUID
- assert call_result1.startswith("016f5e9e-c4c8-")
Review Comment:
Should not be 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]