summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzshi <zshi@redhat.com>2016-11-30 15:12:28 +0800
committerzshi <zshi@redhat.com>2016-11-30 15:21:14 +0800
commit0c71e50caae87b5288e06d3bff1ede2d6f510605 (patch)
treeac5b0c2a12b61d756f660defd4ec626b4bcb8f09
parent2803c022fc5ad60f9240bcbba46ffa1297de06c4 (diff)
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 <zshi@redhat.com>
-rw-r--r--dovetail/tests/unit/test_parser.py3
1 files changed, 2 insertions, 1 deletions
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."""