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

Method test_state_default

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

Source from the content-addressed store, hash-verified

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")
287 tf = Terraform(working_dir=cwd)
288 tf.read_state_file()
289 assert tf.tfstate.modules[0]["path"] == ["default"]
290
291 def test_state_default_backend(self):
292 cwd = os.path.join(current_path, "test_tfstate_file3")

Callers

nothing calls this directly

Calls 2

read_state_fileMethod · 0.95
TerraformClass · 0.90

Tested by

no test coverage detected