How to use the tftest.__init__.TerraformStateModule function in tftest

To help you get started, we’ve selected a few tftest examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github GoogleCloudPlatform / terraform-python-testing-helper / tftest / View on Github external
def __init__(self, raw):
    super(TerraformState, self).__init__(raw)
    self.modules = {}
    for k, v in raw.items():
      if k != 'modules':
        setattr(self, k, v)
      for mod in v:
        path = '.'.join(mod['path'])
        self.modules[path] = TerraformStateModule(path, mod)