turbaszek commented on a change in pull request #10732:
URL: https://github.com/apache/airflow/pull/10732#discussion_r484769156
##########
File path: tests/cli/test_cli.py
##########
@@ -289,6 +290,21 @@ def reset_dr_db(dag_id):
reset_dr_db(dag_id)
+ def test_kubernetes_migrate_to_pod_template_file(self):
+
+ from airflow.kubernetes.pod_generator import PodGenerator
+ with tempfile.TemporaryDirectory("airflow_dry_run_test/") as directory:
+ d = directory
+ print(d)
+ cli.kubernetes_migrate_to_pod_template_file(self.parser.parse_args(
+ ['kubernetes_migrate_to_pod_template_file', '-o', directory]))
Review comment:
```suggestion
['generate_pod_template', '-o', directory]))
```
I know most people will copy paste but... maybe we can use something
simpler? 😄
----------------------------------------------------------------
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]