aboutsummaryrefslogtreecommitdiffstats
path: root/ice_validator/tests/structures.py
diff options
context:
space:
mode:
authorLovett, Trevor <trevor.lovett@att.com>2019-09-06 15:34:12 -0500
committerLovett, Trevor (tl2972) <tl2972@att.com>2019-09-06 15:42:13 -0500
commit1bc097aa957e560147b4d9af49d25e69a6692702 (patch)
treeebf426e45ecaa94ceaf378922731b243fd9ef1e6 /ice_validator/tests/structures.py
parent39119b4e131155ae38f7b435fc9f3693ca924eed (diff)
Enforce black code format via pre-commit hook
Issue-ID: VVP-203 Change-Id: If0de5b4bc1be0c9514decea1f4ff6f5ec79dc41b Signed-off-by: Lovett, Trevor <trevor.lovett@att.com>
Diffstat (limited to 'ice_validator/tests/structures.py')
-rw-r--r--ice_validator/tests/structures.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/ice_validator/tests/structures.py b/ice_validator/tests/structures.py
index 12bfc63..0223bc3 100644
--- a/ice_validator/tests/structures.py
+++ b/ice_validator/tests/structures.py
@@ -495,7 +495,10 @@ class NeutronPortProcessor(HeatProcessor):
An OS::Nova:Port with the property binding:vnic_type
"""
resource_properties = nested_dict.get(resource, "properties", default={})
- if nested_dict.get(resource, "type") == cls.resource_type and resource_properties.get("binding:vnic_type", "") == "direct":
+ if (
+ nested_dict.get(resource, "type") == cls.resource_type
+ and resource_properties.get("binding:vnic_type", "") == "direct"
+ ):
return True
return False
@@ -785,10 +788,12 @@ class Resource(object):
try:
return int(count_value)
except (ValueError, TypeError):
- print((
- "WARNING: Invalid value for count parameter {}. Expected "
- "an integer, but got {}. Defaulting to 1"
- ).format(count_param, count_value))
+ print(
+ (
+ "WARNING: Invalid value for count parameter {}. Expected "
+ "an integer, but got {}. Defaulting to 1"
+ ).format(count_param, count_value)
+ )
return 1
@property