anitakar commented on a change in pull request #7472: [AIRFLOW-6850] Handle no 
access to code in UI
URL: https://github.com/apache/airflow/pull/7472#discussion_r381950672
 
 

 ##########
 File path: tests/www/test_views.py
 ##########
 @@ -569,6 +569,11 @@ def test_code(self):
         resp = self.client.get(url, follow_redirects=True)
         self.check_content_in_response('example_bash_operator', resp)
 
+    def test_code_no_file(self):
+        url = 'code?dag_id=example_bash_operator_xxx'
+        resp = self.client.get(url, follow_redirects=True)
 
 Review comment:
   Yes, sorry, I was being lazy. I did not know how to write the test I needed 
so I wrote this test instead. I will try to figure it out.

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


With regards,
Apache Git Services

Reply via email to