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

Method test_apply

test/test_terraform.py:242–250  ·  view source on GitHub ↗
(self, folder, variables, var_files, expected_output, options)

Source from the content-addressed store, hash-verified

240 ],
241 )
242 def test_apply(self, folder, variables, var_files, expected_output, options):
243 tf = Terraform(
244 working_dir=current_path, variables=variables, var_file=var_files
245 )
246 tf.init(folder)
247 ret, out, err = tf.apply(folder, **options)
248 assert ret == 0
249 assert expected_output in out.replace("\n", "").replace(" ", "")
250 assert err == ""
251
252 def test_apply_with_var_file(self, caplog: LogCaptureFixture):
253 with caplog.at_level(logging.INFO):

Callers

nothing calls this directly

Calls 3

initMethod · 0.95
applyMethod · 0.95
TerraformClass · 0.90

Tested by

no test coverage detected