ashb commented on a change in pull request #15057:
URL: https://github.com/apache/airflow/pull/15057#discussion_r631814053



##########
File path: tests/www/views/test_views_trigger_dag.py
##########
@@ -78,6 +78,16 @@ def test_trigger_dag_conf_malformed(admin_client):
     assert run is None
 
 
+def test_trigger_dag_conf_not_dict(self):
+    test_dag_id = "example_bash_operator"
+
+    response = self.client.post(f'trigger?dag_id={test_dag_id}', data={'conf': 
'string and not a dict'})
+    self.check_content_in_response('must be a dict', response)
+
+    run = self.session.query(DR).filter(DR.dag_id == test_dag_id).first()

Review comment:
       ```suggestion
       run = self.session.query(DagRun).filter(DagRun.dag_id == 
test_dag_id).first()
   ```




-- 
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.

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


Reply via email to