Fixed error message get_attr test 23/109023/2
authorLovett, Trevor <trevor.lovett@att.com>
Wed, 10 Jun 2020 15:29:30 +0000 (10:29 -0500)
committerLovett, Trevor <trevor.lovett@att.com>
Wed, 10 Jun 2020 15:33:10 +0000 (10:33 -0500)
Change-Id: I7eca403caa9e967f52250bd5b434523fbc177d09
Issue-ID: VVP-420
Signed-off-by: Lovett, Trevor <trevor.lovett@att.com>
ice_validator/tests/test_get_attr_usage.py

index 5180add..e7adf64 100644 (file)
@@ -60,12 +60,12 @@ class GetAttrValidator:
                 )
 
     def add_error(self, path, arg, message):
-        path_str = ".".join(path)
+        path_str = ".".join(map(str, path))
         self.errors.append("{} {}: {}".format(path_str, arg, message))
 
     @property
     def error_message(self):
-        errs = "".join(self.errors)
+        errs = "\n".join(self.errors)
         return "Invalid get_attr usage detected: {}".format(errs)