[Kimchi-devel] [PATCH] Ginger Base : Fix Minor Issues with the test cases.

chandra at linux.vnet.ibm.com chandra at linux.vnet.ibm.com
Tue Nov 3 09:01:23 UTC 2015


From: chandrureddy <chandra at linux.vnet.ibm.com>

1. Fix import statement in test_autorization.py
2. Fix object store location in test_yumparser.py
---
 src/wok/plugins/gingerbase/tests/test_authorization.py | 2 +-
 src/wok/plugins/gingerbase/tests/test_yumparser.py     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/wok/plugins/gingerbase/tests/test_authorization.py b/src/wok/plugins/gingerbase/tests/test_authorization.py
index 7460679..d0fc57c 100644
--- a/src/wok/plugins/gingerbase/tests/test_authorization.py
+++ b/src/wok/plugins/gingerbase/tests/test_authorization.py
@@ -23,7 +23,7 @@ import os
 import unittest
 from functools import partial
 
-from wok.plugins.kimchi import mockmodel
+from wok.plugins.gingerbase import mockmodel
 
 from utils import get_free_port, patch_auth, request, run_server
 
diff --git a/src/wok/plugins/gingerbase/tests/test_yumparser.py b/src/wok/plugins/gingerbase/tests/test_yumparser.py
index caf7c27..1695208 100644
--- a/src/wok/plugins/gingerbase/tests/test_yumparser.py
+++ b/src/wok/plugins/gingerbase/tests/test_yumparser.py
@@ -37,7 +37,7 @@ TEMP_REPO_FILE = ''
 
 
 def _is_yum_distro():
-    inst = model.Model()
+    inst = model.Model("/tmp/objectstore")
     repo_type = inst.capabilities_lookup()['repo_mngt_tool']
     return repo_type == 'yum'
 
-- 
2.1.0




More information about the Kimchi-devel mailing list