kaxil commented on code in PR #24079:
URL: https://github.com/apache/airflow/pull/24079#discussion_r914642788
##########
tests/www/views/test_views_decorators.py:
##########
@@ -172,6 +149,20 @@ def test_action_logging_post(session, admin_client):
)
+def delete_variable(session, key):
+ session.query(Variable).filter(Variable.key == key).delete()
+ session.commit()
+
+
+def test_action_logging_variables_post(session, admin_client):
+ form = dict(key="random", value="random")
+ admin_client.post("/variable/add", data=form)
+ session.flush()
+ session.commit()
Review Comment:
flush isn't needed if you are running session.commit straight-after
--
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]