MCPcopy Create free account
hub / github.com/beelit94/python-terraform / test_plan

Method test_plan

test/test_terraform.py:344–352  ·  view source on GitHub ↗
(self, plan, variables, expected_ret)

Source from the content-addressed store, hash-verified

342 ("plan", "variables", "expected_ret"), [("vars_require_input", {}, 1)]
343 )
344 def test_plan(self, plan, variables, expected_ret):
345 tf = Terraform(working_dir=current_path, variables=variables)
346 tf.init(plan)
347 with pytest.raises(TerraformCommandError) as e:
348 tf.plan(plan)
349 assert (
350 e.value.err
351 == """\nError: Missing required argument\n\nThe argument "region" is required, but was not set.\n\n"""
352 )
353
354 def test_fmt(self, fmt_test_file):
355 tf = Terraform(working_dir=current_path, variables={"test_var": "test"})

Callers

nothing calls this directly

Calls 3

initMethod · 0.95
planMethod · 0.95
TerraformClass · 0.90

Tested by

no test coverage detected