Eason09053360 commented on code in PR #75000:
URL: https://github.com/apache/airflow/pull/75000#discussion_r4307557921


##########
airflow-core/tests/unit/cli/commands/test_kerberos_command.py:
##########
@@ -37,6 +37,41 @@ class TestKerberosCommand:
     def setup_class(cls):
         cls.parser = cli_parser.get_parser()
 
+    @pytest.mark.parametrize("one_time", [False, True])
+    @conf_vars({("core", "executor"): "CeleryExecutor", ("database", 
"check_migrations"): "True"})
+    def test_run_without_metadata_database(self, one_time):
+        args = self.parser.parse_args(
+            [
+                "kerberos",
+                "PRINCIPAL",
+                "--keytab",
+                "/tmp/airflow.keytab",
+                *(["--one-time"] if one_time else []),
+            ]
+        )
+        with (

Review Comment:
   Could these be `@mock.patch` decorators as AGENTS.md prefers?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to