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/03 15:57:09 UTC

[GitHub] [airflow] nuclearpinguin commented on a change in pull request #7352: [AIRFLOW-6683] Run REST API tests when DAGs are serialized

nuclearpinguin commented on a change in pull request #7352: [AIRFLOW-6683] Run REST API tests when DAGs are serialized
URL: https://github.com/apache/airflow/pull/7352#discussion_r374185022
 
 

 ##########
 File path: tests/www/api/experimental/test_endpoints.py
 ##########
 @@ -80,239 +90,265 @@ def test_info(self):
         self.assertEqual(version, resp['version'])
 
     def test_task_info(self):
-        url_template = '/api/experimental/dags/{}/tasks/{}'
+        with conf_vars(
+            {("core", "store_serialized_dags"): self.dag_serialzation}
+        ):
+            url_template = '/api/experimental/dags/{}/tasks/{}'
 
 Review comment:
   I think using `conf_vars` as decorator will reduce number of code changes :)

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