From: zshi Date: Wed, 30 Nov 2016 07:12:28 +0000 (+0800) Subject: dovetail tool: fix unittest bugs X-Git-Tag: ovp.0.9.0~275^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=0c71e50caae87b5288e06d3bff1ede2d6f510605;p=dovetail.git dovetail tool: fix unittest bugs JIRA: DOVETAIL-143 1) fix unittest import module path 2) add create_log in setup Change-Id: Ic894fa971b4a5091affb36e8e6aac05e0e8623fb Signed-off-by: zshi --- diff --git a/dovetail/tests/unit/test_parser.py b/dovetail/tests/unit/test_parser.py index 5b003d1a..b4331ea1 100644 --- a/dovetail/tests/unit/test_parser.py +++ b/dovetail/tests/unit/test_parser.py @@ -17,7 +17,7 @@ import unittest import yaml -import dovetail.parser as dovetail_parser +import parser as dovetail_parser class TestParser(unittest.TestCase): @@ -27,6 +27,7 @@ class TestParser(unittest.TestCase): def setUp(self): """Test case setup""" logging.disable(logging.CRITICAL) + dovetail_parser.Parser.create_log() def test_parser_cmd(self): """Test whether the command is correctly parsed."""