valentinDruzhinin commented on code in PR #46799:
URL: https://github.com/apache/airflow/pull/46799#discussion_r1958530378
##########
tests/cli/commands/remote_commands/test_variable_command.py:
##########
@@ -190,3 +191,47 @@ def test_variables_isolation(self, tmp_path):
variable_command.variables_export(self.parser.parse_args(["variables",
"export", os.fspath(path2)]))
assert path1.read_text() == path2.read_text()
+
+ def test_variables_import_and_export_with_description(self):
+ """Test variables_import with file-description parameted"""
+ variable_command.variables_set(
+ self.parser.parse_args(["variables", "set", "foo", "bar",
"--description", "Foo var description"])
+ )
+ variable_command.variables_set(
+ self.parser.parse_args(["variables", "set", "foo1", "bar1",
"--description", "12"])
+ )
+ variable_command.variables_set(self.parser.parse_args(["variables",
"set", "foo2", "bar2"]))
+ variable_command.variables_export(
+ self.parser.parse_args(["variables", "export",
"variables_types.json"])
+ )
+
+ with open("variables_types.json") as f:
Review Comment:
fixed, thank you :)
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]