| 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"}) |