Skip to content

Commit

Permalink
fix link style tests
Browse files Browse the repository at this point in the history
  • Loading branch information
uzhastik committed Mar 10, 2024
1 parent 2bd6831 commit 7472f4e
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tests/providers/yandex/links/test_yq.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,16 @@

from unittest import mock

from airflow.models.xcom import XCom
from airflow.models.taskinstance import TaskInstance

from airflow.models.xcom import XCom
from airflow.providers.yandex.links.yq import YQLink
from tests.test_utils.mock_operators import MockOperator


def test_persist():
mock_context = mock.MagicMock()

YQLink.persist(
context=mock_context,
task_instance=MockOperator(task_id="test_task_id"),
web_link="g.com"
)
YQLink.persist(context=mock_context, task_instance=MockOperator(task_id="test_task_id"), web_link="g.com")

ti = mock_context["ti"]
ti.xcom_push.assert_called_once_with(
Expand Down

0 comments on commit 7472f4e

Please sign in to comment.