Skip to content

Commit

Permalink
replace load method with update
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoceppi committed Sep 3, 2020
1 parent 4eb3d48 commit 5e4e619
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytest_terraform/tf.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def from_state(cls, state):
resources, outputs = cls.parse_state(state)
return cls(resources, outputs)

def load(self, state):
def update(self, state):
resources, outputs = self.parse_state(state)
self.resources = resources
self.outputs = outputs
Expand Down Expand Up @@ -362,7 +362,7 @@ def create(self, request, module_dir):
test_api = self.runner.apply()
tfstatejson = test_api.save()
self.config.hook.pytest_terraform_modify_state(tfstate=tfstatejson)
test_api.load(tfstatejson)
test_api.update(tfstatejson)
test_api.save(module_dir.join("tf_resources.json"))
return test_api
except Exception:
Expand Down

0 comments on commit 5e4e619

Please sign in to comment.