You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2021/06/15 07:02:55 UTC

[airflow] branch main updated: Disable Pylint member check for ``tests/decorators/test_python.py`` (#16443)

This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new ce28bc5  Disable Pylint member check for ``tests/decorators/test_python.py`` (#16443)
ce28bc5 is described below

commit ce28bc52a8d477e137f9293ce0f3f90d4e291883
Author: Kaxil Naik <ka...@gmail.com>
AuthorDate: Tue Jun 15 08:02:20 2021 +0100

    Disable Pylint member check for ``tests/decorators/test_python.py`` (#16443)
    
    Some PRs are failing this check:
    
    https://github.com/apache/airflow/pull/16408/checks?check_run_id=2823934948#step:9:54
    https://github.com/apache/airflow/pull/16393/checks?check_run_id=2813095540#step:9:54
    
    However those PRs have not changed that file.
---
 tests/decorators/test_python.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tests/decorators/test_python.py b/tests/decorators/test_python.py
index 59849fc..62bee58 100644
--- a/tests/decorators/test_python.py
+++ b/tests/decorators/test_python.py
@@ -454,9 +454,11 @@ class TestAirflowTaskDecorator(TestPythonBase):
         bigger_number.operator.run(  # pylint: disable=maybe-no-member
             start_date=DEFAULT_DATE, end_date=DEFAULT_DATE
         )
-        ret.operator.run(start_date=DEFAULT_DATE, end_date=DEFAULT_DATE)  # pylint: disable=maybe-no-member
+        # pylint: disable=no-member, maybe-no-member
+        ret.operator.run(start_date=DEFAULT_DATE, end_date=DEFAULT_DATE)
         ti_add_num = [ti for ti in dr.get_task_instances() if ti.task_id == 'add_num'][0]
-        assert ti_add_num.xcom_pull(key=ret.key) == (test_number + 2) * 2  # pylint: disable=maybe-no-member
+        assert ti_add_num.xcom_pull(key=ret.key) == (test_number + 2) * 2
+        # pylint: enable=no-member, maybe-no-member
 
     def test_dag_task(self):
         """Tests dag.task property to generate task"""