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 9fbaca0ab0 Remove API/CLI commends from db isolation mode tests 
(#41197)
9fbaca0ab0 is described below

commit 9fbaca0ab0150d899caea172ea3d1085982edd4f
Author: Jarek Potiuk <[email protected]>
AuthorDate: Thu Aug 1 21:20:47 2024 +0200

    Remove API/CLI commends from db isolation mode tests (#41197)
    
    Related: #41067
---
 tests/api_experimental/client/test_local_client.py      | 2 +-
 tests/api_experimental/common/experimental/test_pool.py | 2 +-
 tests/api_experimental/common/test_delete_dag.py        | 2 +-
 tests/api_experimental/common/test_trigger_dag.py       | 2 +-
 tests/cli/commands/test_celery_command.py               | 2 +-
 tests/cli/commands/test_connection_command.py           | 2 +-
 tests/cli/commands/test_jobs_command.py                 | 1 +
 tests/cli/commands/test_kerberos_command.py             | 2 +-
 tests/cli/commands/test_kubernetes_command.py           | 2 +-
 tests/cli/commands/test_plugins_command.py              | 2 +-
 tests/cli/commands/test_pool_command.py                 | 2 +-
 tests/cli/commands/test_triggerer_command.py            | 2 +-
 tests/cli/commands/test_variable_command.py             | 2 +-
 13 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/tests/api_experimental/client/test_local_client.py 
b/tests/api_experimental/client/test_local_client.py
index 91a81a0caf..5810f9a555 100644
--- a/tests/api_experimental/client/test_local_client.py
+++ b/tests/api_experimental/client/test_local_client.py
@@ -39,7 +39,7 @@ from airflow.utils.state import DagRunState
 from airflow.utils.types import DagRunType
 from tests.test_utils.db import clear_db_pools
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 EXECDATE = timezone.utcnow()
 EXECDATE_NOFRACTIONS = EXECDATE.replace(microsecond=0)
diff --git a/tests/api_experimental/common/experimental/test_pool.py 
b/tests/api_experimental/common/experimental/test_pool.py
index 3f3cbe846a..7483c3f0e7 100644
--- a/tests/api_experimental/common/experimental/test_pool.py
+++ b/tests/api_experimental/common/experimental/test_pool.py
@@ -29,7 +29,7 @@ from airflow.models.pool import Pool
 from airflow.utils.session import create_session
 from tests.test_utils.db import clear_db_pools
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 @pytest.mark.filterwarnings("ignore::DeprecationWarning")
diff --git a/tests/api_experimental/common/test_delete_dag.py 
b/tests/api_experimental/common/test_delete_dag.py
index 4dc5f9b00f..693a534bc6 100644
--- a/tests/api_experimental/common/test_delete_dag.py
+++ b/tests/api_experimental/common/test_delete_dag.py
@@ -35,7 +35,7 @@ from airflow.utils.types import DagRunType
 from tests.test_utils.compat import ParseImportError as IE
 from tests.test_utils.db import clear_db_dags, clear_db_runs
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 class TestDeleteDAGCatchError:
diff --git a/tests/api_experimental/common/test_trigger_dag.py 
b/tests/api_experimental/common/test_trigger_dag.py
index bfd9d3fd2d..8d4dc47e25 100644
--- a/tests/api_experimental/common/test_trigger_dag.py
+++ b/tests/api_experimental/common/test_trigger_dag.py
@@ -28,7 +28,7 @@ from airflow.models.dagrun import DagRun
 from airflow.utils import timezone
 from tests.test_utils import db
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 class TestTriggerDag:
diff --git a/tests/cli/commands/test_celery_command.py 
b/tests/cli/commands/test_celery_command.py
index 1659588237..476e6279fb 100644
--- a/tests/cli/commands/test_celery_command.py
+++ b/tests/cli/commands/test_celery_command.py
@@ -32,7 +32,7 @@ from airflow.configuration import conf
 from airflow.executors import executor_loader
 from tests.test_utils.config import conf_vars
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 class TestWorkerPrecheck:
diff --git a/tests/cli/commands/test_connection_command.py 
b/tests/cli/commands/test_connection_command.py
index 4d271b01de..fbfd3d2945 100644
--- a/tests/cli/commands/test_connection_command.py
+++ b/tests/cli/commands/test_connection_command.py
@@ -35,7 +35,7 @@ from airflow.utils.db import merge_conn
 from airflow.utils.session import create_session
 from tests.test_utils.db import clear_db_connections
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 @pytest.fixture(scope="module", autouse=True)
diff --git a/tests/cli/commands/test_jobs_command.py 
b/tests/cli/commands/test_jobs_command.py
index bd58f0219e..28c739a2f2 100644
--- a/tests/cli/commands/test_jobs_command.py
+++ b/tests/cli/commands/test_jobs_command.py
@@ -30,6 +30,7 @@ from airflow.utils.state import JobState, State
 from tests.test_utils.db import clear_db_jobs
 
 
[email protected]_if_database_isolation_mode
 @pytest.mark.db_test
 class TestCliConfigList:
     @classmethod
diff --git a/tests/cli/commands/test_kerberos_command.py 
b/tests/cli/commands/test_kerberos_command.py
index f5c9823f52..35e90fb549 100644
--- a/tests/cli/commands/test_kerberos_command.py
+++ b/tests/cli/commands/test_kerberos_command.py
@@ -25,7 +25,7 @@ from airflow.cli.commands import kerberos_command
 from airflow.security.kerberos import KerberosMode
 from tests.test_utils.config import conf_vars
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 class TestKerberosCommand:
diff --git a/tests/cli/commands/test_kubernetes_command.py 
b/tests/cli/commands/test_kubernetes_command.py
index 0eff5f29e9..d489aa3ea9 100644
--- a/tests/cli/commands/test_kubernetes_command.py
+++ b/tests/cli/commands/test_kubernetes_command.py
@@ -30,7 +30,7 @@ from airflow.cli.commands import kubernetes_command
 from airflow.executors import executor_loader
 from tests.test_utils.config import conf_vars
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 class TestGenerateDagYamlCommand:
diff --git a/tests/cli/commands/test_plugins_command.py 
b/tests/cli/commands/test_plugins_command.py
index 5a1c8d64e1..920e339563 100644
--- a/tests/cli/commands/test_plugins_command.py
+++ b/tests/cli/commands/test_plugins_command.py
@@ -31,7 +31,7 @@ from airflow.plugins_manager import AirflowPlugin
 from tests.plugins.test_plugin import AirflowTestPlugin as ComplexAirflowPlugin
 from tests.test_utils.mock_plugins import mock_plugin_manager
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 class PluginHook(BaseHook):
diff --git a/tests/cli/commands/test_pool_command.py 
b/tests/cli/commands/test_pool_command.py
index 67cc39dec4..86111e69aa 100644
--- a/tests/cli/commands/test_pool_command.py
+++ b/tests/cli/commands/test_pool_command.py
@@ -30,7 +30,7 @@ from airflow.models import Pool
 from airflow.settings import Session
 from airflow.utils.db import add_default_pool_if_not_exists
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 class TestCliPools:
diff --git a/tests/cli/commands/test_triggerer_command.py 
b/tests/cli/commands/test_triggerer_command.py
index b5222038f2..db989a18ea 100644
--- a/tests/cli/commands/test_triggerer_command.py
+++ b/tests/cli/commands/test_triggerer_command.py
@@ -24,7 +24,7 @@ import pytest
 from airflow.cli import cli_parser
 from airflow.cli.commands import triggerer_command
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 class TestTriggererCommand:
diff --git a/tests/cli/commands/test_variable_command.py 
b/tests/cli/commands/test_variable_command.py
index 4a986c589e..f95e7b1648 100644
--- a/tests/cli/commands/test_variable_command.py
+++ b/tests/cli/commands/test_variable_command.py
@@ -31,7 +31,7 @@ from airflow.models import Variable
 from airflow.utils.session import create_session
 from tests.test_utils.db import clear_db_variables
 
-pytestmark = pytest.mark.db_test
+pytestmark = [pytest.mark.db_test, pytest.mark.skip_if_database_isolation_mode]
 
 
 class TestCliVariables:

Reply via email to