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

Method test_state_data

test/test_terraform.py:279–283  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

277 assert out == ""
278
279 def test_state_data(self):
280 cwd = os.path.join(current_path, "test_tfstate_file")
281 tf = Terraform(working_dir=cwd, state="tfstate.test")
282 tf.read_state_file()
283 assert tf.tfstate.modules[0]["path"] == ["root"]
284
285 def test_state_default(self):
286 cwd = os.path.join(current_path, "test_tfstate_file2")

Callers

nothing calls this directly

Calls 2

read_state_fileMethod · 0.95
TerraformClass · 0.90

Tested by

no test coverage detected