Skip to content

Commit

Permalink
Remove API/CLI commends from db isolation mode tests (apache#41197)
Browse files Browse the repository at this point in the history
Related: apache#41067
  • Loading branch information
potiuk authored Aug 1, 2024
1 parent 7751594 commit 9fbaca0
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion tests/api_experimental/client/test_local_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
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)
Expand Down
2 changes: 1 addition & 1 deletion tests/api_experimental/common/experimental/test_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
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")
Expand Down
2 changes: 1 addition & 1 deletion tests/api_experimental/common/test_delete_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
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:
Expand Down
2 changes: 1 addition & 1 deletion tests/api_experimental/common/test_trigger_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
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:
Expand Down
2 changes: 1 addition & 1 deletion tests/cli/commands/test_celery_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
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:
Expand Down
2 changes: 1 addition & 1 deletion tests/cli/commands/test_connection_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
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)
Expand Down
1 change: 1 addition & 0 deletions tests/cli/commands/test_jobs_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
from tests.test_utils.db import clear_db_jobs


@pytest.mark.skip_if_database_isolation_mode
@pytest.mark.db_test
class TestCliConfigList:
@classmethod
Expand Down
2 changes: 1 addition & 1 deletion tests/cli/commands/test_kerberos_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
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:
Expand Down
2 changes: 1 addition & 1 deletion tests/cli/commands/test_kubernetes_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
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:
Expand Down
2 changes: 1 addition & 1 deletion tests/cli/commands/test_plugins_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
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):
Expand Down
2 changes: 1 addition & 1 deletion tests/cli/commands/test_pool_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
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:
Expand Down
2 changes: 1 addition & 1 deletion tests/cli/commands/test_triggerer_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
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:
Expand Down
2 changes: 1 addition & 1 deletion tests/cli/commands/test_variable_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
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:
Expand Down

0 comments on commit 9fbaca0

Please sign in to comment.