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 2023/12/27 10:28:26 UTC
(airflow) branch main updated: Update BREEZE.rst with different test example (#36234)
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 71c726d52d Update BREEZE.rst with different test example (#36234)
71c726d52d is described below
commit 71c726d52d5a8a30f59268cc175560a4244c8016
Author: Bowrna <ma...@gmail.com>
AuthorDate: Wed Dec 27 15:58:20 2023 +0530
Update BREEZE.rst with different test example (#36234)
Updating the breeze docs with different pytest example as the function mentioned in the example is removed from the test_core.py
---
BREEZE.rst | 2 +-
TESTING.rst | 2 +-
scripts/ci/pre_commit/common_precommit_utils.py | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/BREEZE.rst b/BREEZE.rst
index 4350c243e4..7bcda45029 100644
--- a/BREEZE.rst
+++ b/BREEZE.rst
@@ -1004,7 +1004,7 @@ Running single test:
.. code-block:: bash
- pytest tests/core/test_core.py::TestCore::test_check_operators
+ pytest tests/core/test_core.py::TestCore::test_dag_params_and_task_params
To run the whole test class:
diff --git a/TESTING.rst b/TESTING.rst
index df2f6044ac..385bdef5d8 100644
--- a/TESTING.rst
+++ b/TESTING.rst
@@ -860,7 +860,7 @@ This can also be done by specifying a full path to the test:
.. code-block:: bash
- pytest tests/core/test_core.py::TestCore::test_check_operators
+ pytest tests/core/test_core.py::TestCore::test_dag_params_and_task_params
To run the whole test class, enter:
diff --git a/scripts/ci/pre_commit/common_precommit_utils.py b/scripts/ci/pre_commit/common_precommit_utils.py
index 5284f71fc1..76370b15ad 100644
--- a/scripts/ci/pre_commit/common_precommit_utils.py
+++ b/scripts/ci/pre_commit/common_precommit_utils.py
@@ -79,7 +79,7 @@ def initialize_breeze_precommit(name: str, file: str):
if os.environ.get("SKIP_BREEZE_PRE_COMMITS"):
console.print("[yellow]Skipping breeze pre-commit as SKIP_BREEZE_PRE_COMMIT is set")
- sys.exit(1)
+ sys.exit(0)
if shutil.which("breeze") is None:
console.print(
"[red]The `breeze` command is not on path.[/]\n\n"