From 726292f65a8e7df9eb7faa4614d77a049218f665 Mon Sep 17 00:00:00 2001 From: shangxdy Date: Tue, 29 Aug 2017 15:01:35 +0800 Subject: Add import file with suffix of yml testcases Add import file with suffix of yml testcases: 1.normal file with suffix of yml; 2.import file with suffix of yml. JIRA: PARSER-144 Change-Id: I24368f7248e782df2e57202a3129c677e1bf068f Signed-off-by: shangxdy --- tosca2heat/tosca-parser/toscaparser/tests/test_toscatpl.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tosca2heat/tosca-parser/toscaparser/tests/test_toscatpl.py') diff --git a/tosca2heat/tosca-parser/toscaparser/tests/test_toscatpl.py b/tosca2heat/tosca-parser/toscaparser/tests/test_toscatpl.py index af35cfb..69dfb46 100644 --- a/tosca2heat/tosca-parser/toscaparser/tests/test_toscatpl.py +++ b/tosca2heat/tosca-parser/toscaparser/tests/test_toscatpl.py @@ -216,6 +216,10 @@ class ToscaTemplateTest(TestCase): tosca_tpl = self._load_template('test_no_outputs_in_template.yaml') self.assertEqual(0, len(tosca_tpl.outputs)) + def test_template_file_with_suffix_yml(self): + tosca_tpl = self._load_template('custom_types/wordpress.yml') + self.assertIsNotNone(tosca_tpl) + def test_relationship_interface(self): template = ToscaTemplate(self.tosca_elk_tpl) for node_tpl in template.nodetemplates: -- cgit 1.2.3-korg