diff --git a/tests/providers/fab/auth_manager/cli_commands/test_role_command.py b/tests/providers/fab/auth_manager/cli_commands/test_role_command.py index 9c9be088e87df..5f12c01860d1f 100644 --- a/tests/providers/fab/auth_manager/cli_commands/test_role_command.py +++ b/tests/providers/fab/auth_manager/cli_commands/test_role_command.py @@ -26,6 +26,7 @@ from airflow.cli import cli_parser from tests.test_utils.compat import ignore_provider_compatibility_error +from tests.test_utils.config import conf_vars with ignore_provider_compatibility_error("2.9.0+", __file__): from airflow.providers.fab.auth_manager.cli_commands import role_command @@ -47,11 +48,12 @@ class TestCliRoles: @pytest.fixture(autouse=True) def _set_attrs(self): self.parser = cli_parser.get_parser() - with get_application_builder() as appbuilder: - self.appbuilder = appbuilder - self.clear_users_and_roles() - yield - self.clear_users_and_roles() + with conf_vars({("fab", "UPDATE_FAB_PERMS"): "False"}): + with get_application_builder() as appbuilder: + self.appbuilder = appbuilder + self.clear_users_and_roles() + yield + self.clear_users_and_roles() def clear_users_and_roles(self): session = self.appbuilder.get_session