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 90b98478cc5 Fix System test type in breeze (#43670)
90b98478cc5 is described below
commit 90b98478cc5a3c81e2beab57cd222061d53db87d
Author: Niko Oliveira <[email protected]>
AuthorDate: Mon Nov 4 23:32:04 2024 -0800
Fix System test type in breeze (#43670)
* Fix System test type in breeze
Adjust the behaviour of the `System` test type in Breeze testing tests.
Remove the path appending to the beginning of the breeze command
(because as we've discussed before with the reorganization of our test
directories this creates a non-top level loading of a pytest plugin
which pytest disallows). This allow us to still specify the System test
type because that option controls other beahviours we need (like
disabling db init).
* Fix unit test
---
dev/breeze/src/airflow_breeze/utils/run_tests.py | 3 +--
dev/breeze/tests/test_pytest_args_for_test_types.py | 2 +-
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/dev/breeze/src/airflow_breeze/utils/run_tests.py
b/dev/breeze/src/airflow_breeze/utils/run_tests.py
index 6379eda9e75..9e9ca2d2660 100644
--- a/dev/breeze/src/airflow_breeze/utils/run_tests.py
+++ b/dev/breeze/src/airflow_breeze/utils/run_tests.py
@@ -170,7 +170,6 @@ TEST_TYPE_MAP_TO_PYTEST_ARGS: dict[str, list[str]] = {
"Serialization": [
"tests/serialization",
],
- "System": ["tests/system"],
"TaskSDK": ["task_sdk/tests"],
"WWW": [
"tests/www",
@@ -255,7 +254,7 @@ def convert_test_type_to_pytest_args(
else:
return [INTEGRATION_TESTS]
if test_type == "System":
- return [SYSTEM_TESTS]
+ return []
if skip_provider_tests and test_type.startswith("Providers"):
return []
if test_type.startswith(PROVIDERS_LIST_EXCLUDE_PREFIX):
diff --git a/dev/breeze/tests/test_pytest_args_for_test_types.py
b/dev/breeze/tests/test_pytest_args_for_test_types.py
index 94a229802ad..d4e61b08c60 100644
--- a/dev/breeze/tests/test_pytest_args_for_test_types.py
+++ b/dev/breeze/tests/test_pytest_args_for_test_types.py
@@ -63,7 +63,7 @@ from airflow_breeze.utils.run_tests import
convert_parallel_types_to_folders, co
),
(
"System",
- ["tests/system"],
+ [],
False,
),
(