"""
import os
import collections
-import pytest
from .structures import Heat
from .structures import HeatProcessor
"""
h = Heat(filepath=yaml_file)
- if not h.resources:
- pytest.skip("No resources in this template")
-
non_servers = get_non_servers(h)
- if not non_servers:
- pytest.skip("No non-server resources in this template")
bad = []
for rid, resource in non_servers.items():
def test_non_server_name_unique(heat_template):
"""Test name has unique value
"""
- list_nest = nested_files.get_list_of_nested_files(heat_template, os.path.dirname(heat_template))
+ list_nest = nested_files.get_list_of_nested_files(
+ heat_template, os.path.dirname(heat_template)
+ )
list_nest.append(heat_template)
non_servers = {}
for yaml_file in list_nest: