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 98e0977a53e Fixing cli test failure in CI (#44679)
98e0977a53e is described below

commit 98e0977a53ea3dc55987f5a2c512fb3b590d3d1c
Author: Amogh Desai <[email protected]>
AuthorDate: Fri Dec 6 10:14:09 2024 +0530

    Fixing cli test failure in CI (#44679)
    
    * Fixing cli test failure in CI
    
    * review comments
---
 tests/cli/test_cli_parser.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/tests/cli/test_cli_parser.py b/tests/cli/test_cli_parser.py
index 669209c8ac2..23363b379d8 100644
--- a/tests/cli/test_cli_parser.py
+++ b/tests/cli/test_cli_parser.py
@@ -420,10 +420,8 @@ class TestCli:
                     ["db", "export-archived", "--export-format", 
export_format, "--output-path", "mydir"]
                 )
             error_msg = stderr.getvalue()
-        assert error_msg == (
-            "\nairflow db export-archived command error: argument "
-            f"--export-format: invalid choice: '{export_format}' "
-            "(choose from 'csv'), see help above.\n"
+        assert (
+            "airflow db export-archived command error: argument 
--export-format: invalid choice" in error_msg
         )
 
     @pytest.mark.parametrize(

Reply via email to