From 71c726d52d5a8a30f59268cc175560a4244c8016 Mon Sep 17 00:00:00 2001 From: Bowrna Date: Wed, 27 Dec 2023 15:58:20 +0530 Subject: [PATCH] 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 4350c243e43c0..7bcda450295ca 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 df2f6044ac00c..385bdef5d8506 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 5284f71fc1519..76370b15adb59 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"