You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/02/20 11:48:36 UTC

[GitHub] [airflow] anitakar commented on a change in pull request #7472: [AIRFLOW-6850] Handle no access to code in UI

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:
users@infra.apache.org


With regards,
Apache Git Services