From 0c71e50caae87b5288e06d3bff1ede2d6f510605 Mon Sep 17 00:00:00 2001 From: zshi Date: Wed, 30 Nov 2016 15:12:28 +0800 Subject: 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 --- dovetail/tests/unit/test_parser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dovetail/tests') 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.""" -- cgit 1.2.3-korg