Skip to content

Commit

Permalink
fix unit test regression
Browse files Browse the repository at this point in the history
  • Loading branch information
aszs committed Sep 16, 2023
1 parent 413f8e5 commit 5c2e2c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 4 additions & 4 deletions tests/test_substitutions_mappings.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ def test_substitution_plan():
}


ensemble = """
attribute_access_ensemble = """
apiVersion: unfurl/v1alpha1
kind: Ensemble
spec:
Expand Down Expand Up @@ -545,7 +545,7 @@ def test_substitution_plan():
eval: ::containerhost::user_data::DB_HOST
"""

nested_node_import = """
attribute_access_import = """
node_types:
DBHost:
derived_from: tosca.nodes.Root
Expand Down Expand Up @@ -631,10 +631,10 @@ def test_attribute_access():
env=dict(UNFURL_HOME=""),
)
with open("ensemble-template.yaml", "w") as f:
f.write(ensemble)
f.write(attribute_access_ensemble)

with open("nested1.yaml", "w") as f:
f.write(nested_node_import)
f.write(attribute_access_import)

manifest = YamlManifest(localEnv=LocalEnv(".", homePath="./unfurl_home"))
result, job, summary = run_job_cmd(cli_runner, print_result=True)
Expand Down
2 changes: 0 additions & 2 deletions unfurl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ def is_version_unreleased(v: Union[None, str] = None) -> bool:
]
__safe__ = _tosca_types

__all__ = []

def __getattr__(name):
if name in _tosca_types:
from .tosca_plugins import tosca_ext
Expand Down

0 comments on commit 5c2e2c6

Please sign in to comment.