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

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


The following commit(s) were added to refs/heads/master by this push:
     new f5a35f4  Fix some small typos also TESTING.rst (#14594)
f5a35f4 is described below

commit f5a35f4c80839ba07b1257d711cbc982aba5eedb
Author: Marcos Marx <[email protected]>
AuthorDate: Thu Mar 4 09:51:33 2021 -0300

    Fix some small typos also TESTING.rst (#14594)
    
    - Small typos in Jdbc provider documentation;
    - Find in the Concepts page an example using the old xcom_push arg and 
changed it;
    - Some changes in TESTING.rst that I found when trying the quick start.
---
 TESTING.rst                                                 | 10 +++++-----
 airflow/providers/jdbc/example_dags/example_jdbc_queries.py |  2 +-
 docs/apache-airflow-providers-jdbc/index.rst                |  5 -----
 docs/apache-airflow/concepts.rst                            |  2 +-
 4 files changed, 7 insertions(+), 12 deletions(-)

diff --git a/TESTING.rst b/TESTING.rst
index dcf083a..d6803c0 100644
--- a/TESTING.rst
+++ b/TESTING.rst
@@ -91,20 +91,20 @@ in the official documentation, but here are a few basic 
examples:
 
 .. code-block:: bash
 
-    pytest -k "TestCore and not check"
+    pytest tests/core -k "TestCore and not check"
 
 This runs the ``TestCore`` class but skips tests of this class that include 
'check' in their names.
 For better performance (due to a test collection), run:
 
 .. code-block:: bash
 
-    pytest tests/tests_core.py -k "TestCore and not bash".
+    pytest tests/core/test_core.py -k "TestCore and not bash"
 
 This flag is useful when used to run a single test like this:
 
 .. code-block:: bash
 
-    pytest tests/tests_core.py -k "test_check_operators"
+    pytest tests/core/test_core.py -k "test_check_operators"
 
 This can also be done by specifying a full path to the test:
 
@@ -123,7 +123,7 @@ for debugging purposes, enter:
 
 .. code-block:: bash
 
-    pytest --log-level=DEBUG tests/core/test_core.py::TestCore
+    pytest --log-cli-level=DEBUG tests/core/test_core.py::TestCore
 
 
 Running Tests for a Specified Target Using Breeze from the Host
@@ -136,7 +136,7 @@ to breeze.
 
 .. code-block:: bash
 
-     ./breeze tests tests/hooks/test_druid_hook.py tests/tests_core.py 
--db-reset -- --logging-level=DEBUG
+     ./breeze tests tests/providers/http/hooks/test_http.py 
tests/core/test_core.py --db-reset -- --log-cli-level=DEBUG
 
 You can run the whole test suite without adding the test target:
 
diff --git a/airflow/providers/jdbc/example_dags/example_jdbc_queries.py 
b/airflow/providers/jdbc/example_dags/example_jdbc_queries.py
index 4881a47..54cac66 100644
--- a/airflow/providers/jdbc/example_dags/example_jdbc_queries.py
+++ b/airflow/providers/jdbc/example_dags/example_jdbc_queries.py
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 
-"""Example DAG demonstrating the usage of the BashOperator."""
+"""Example DAG demonstrating the usage of the JdbcOperator."""
 
 from datetime import timedelta
 
diff --git a/docs/apache-airflow-providers-jdbc/index.rst 
b/docs/apache-airflow-providers-jdbc/index.rst
index 84243a3..b360df8 100644
--- a/docs/apache-airflow-providers-jdbc/index.rst
+++ b/docs/apache-airflow-providers-jdbc/index.rst
@@ -27,11 +27,6 @@ Content
     :caption: Guides
 
     Operators <operators>
-
-.. toctree::
-    :maxdepth: 1
-    :caption: Guides
-
     Connection types <connections/jdbc>
 
 .. toctree::
diff --git a/docs/apache-airflow/concepts.rst b/docs/apache-airflow/concepts.rst
index 522968b..59537f7 100644
--- a/docs/apache-airflow/concepts.rst
+++ b/docs/apache-airflow/concepts.rst
@@ -178,7 +178,7 @@ Example DAG built with the TaskFlow API
 
     # Using default connection as it's set to httpbin.org by default
     get_ip = SimpleHttpOperator(
-        task_id='get_ip', endpoint='get', method='GET', xcom_push=True
+        task_id='get_ip', endpoint='get', method='GET', do_xcom_push=True
     )
 
     @dag.task(multiple_outputs=True)

Reply via email to