This is an automated email from the ASF dual-hosted git repository.

amoghdesai 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 b2d2bcb136f AIP-72: Matching the test naming convention to execution 
API endpoint (#44471)
b2d2bcb136f is described below

commit b2d2bcb136fb2c56bc36a25d5d535f5c479cb042
Author: Amogh Desai <amoghrajesh1...@gmail.com>
AuthorDate: Fri Nov 29 14:37:26 2024 +0530

    AIP-72: Matching the test naming convention to execution API endpoint 
(#44471)
---
 tests/api_fastapi/execution_api/routes/test_variables.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/api_fastapi/execution_api/routes/test_variables.py 
b/tests/api_fastapi/execution_api/routes/test_variables.py
index 9ae7f9a2739..d70b0d4e4d2 100644
--- a/tests/api_fastapi/execution_api/routes/test_variables.py
+++ b/tests/api_fastapi/execution_api/routes/test_variables.py
@@ -86,7 +86,7 @@ class TestGetVariable:
         }
 
 
-class TestPostVariable:
+class TestPutVariable:
     @pytest.mark.parametrize(
         "payload",
         [
@@ -101,6 +101,7 @@ class TestPostVariable:
             json=payload,
         )
         assert response.status_code == 201
+        assert response.json()["message"] == "Variable successfully set"
 
         var_from_db = session.query(Variable).where(Variable.key == 
"var_create").first()
         assert var_from_db is not None
@@ -137,6 +138,7 @@ class TestPostVariable:
             json=payload,
         )
         assert response.status_code == 201
+        assert response.json()["message"] == "Variable successfully set"
         # variable should have been updated to the new value
         var_from_db = session.query(Variable).where(Variable.key == 
key).first()
         assert var_from_db is not None

Reply via email to