From f8f3e415294553c242481c47696139306a1d01bf Mon Sep 17 00:00:00 2001 From: bom Date: Wed, 12 Jan 2022 14:28:54 +0100 Subject: [PATCH] fixed apply tests --- test/test_terraform.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/test_terraform.py b/test/test_terraform.py index 1b8fe15..12a0baf 100644 --- a/test/test_terraform.py +++ b/test/test_terraform.py @@ -289,19 +289,19 @@ class TestTerraform: @pytest.mark.parametrize( ("folder", "variables", "var_files", "expected_output", "options"), [ - ("var_to_output", {"test_var": "test"}, None, "test_output=test", {}), + ("var_to_output", {"test_var": "test"}, None, 'test_output="test"', {}), ( "var_to_output", {"test_list_var": ["c", "d"]}, None, - 'test_list_output=["c","d",]', + 'test_list_output=tolist(["c","d",])', {}, ), ( "var_to_output", {"test_map_var": {"c": "c", "d": "d"}}, None, - 'test_map_output={"c"="c""d"="d"}', + 'test_map_output=tomap({"c"="c""d"="d"})', {}, ), ( @@ -309,7 +309,7 @@ class TestTerraform: {"test_map_var": {"c": "c", "d": "d"}}, "var_to_output/test_map_var.json", # Values are overriden - 'test_map_output={"e"="e""f"="f"}', + 'test_map_output=tomap({"e"="e""f"="f"})', {}, ), ( @@ -323,7 +323,7 @@ class TestTerraform: ) def test_apply(self, folder, variables, var_files, expected_output, options): tf = Terraform( - working_dir=current_path, variables=variables, var_file=var_files + working_dir=current_path, variables=variables, var_file=var_files, terraform_version=version ) tf.init(folder) ret, out, err = tf.apply(folder, **options)