[Kimchi-devel] [PATCH 4/4] Fix make check-local for Ginger Base

Aline Manera alinefm at linux.vnet.ibm.com
Thu Nov 12 16:09:48 UTC 2015


The changes were made according to pep8 1.6.1

Signed-off-by: Aline Manera <alinefm at linux.vnet.ibm.com>
---
 src/wok/plugins/gingerbase/model/model.py      | 4 ++--
 src/wok/plugins/gingerbase/tests/test_host.py  | 4 ++--
 src/wok/plugins/gingerbase/tests/test_model.py | 2 +-
 src/wok/plugins/gingerbase/tests/utils.py      | 4 ++--
 4 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/wok/plugins/gingerbase/model/model.py b/src/wok/plugins/gingerbase/model/model.py
index 1f56cc7..841c913 100644
--- a/src/wok/plugins/gingerbase/model/model.py
+++ b/src/wok/plugins/gingerbase/model/model.py
@@ -60,8 +60,8 @@ class Model(BaseModel):
             if mod_name.startswith("_") or mod_name == this_mod:
                 continue
 
-            instances = get_instances('wok.plugins.gingerbase.model.'
-                                      + mod_name)
+            instances = get_instances('wok.plugins.gingerbase.model.' +
+                                      mod_name)
             for instance in instances:
                 models.append(instance(**kargs))
 
diff --git a/src/wok/plugins/gingerbase/tests/test_host.py b/src/wok/plugins/gingerbase/tests/test_host.py
index e553a89..4f3e848 100644
--- a/src/wok/plugins/gingerbase/tests/test_host.py
+++ b/src/wok/plugins/gingerbase/tests/test_host.py
@@ -119,8 +119,8 @@ class HostTests(unittest.TestCase):
         pkg_keys = ['package_name', 'repository', 'arch', 'version']
         for p in pkgs:
             name = p['package_name']
-            resp = self.request('/plugins/gingerbase/host/packagesupdate/'
-                                + name, None, 'GET')
+            resp = self.request('/plugins/gingerbase/host/packagesupdate/' +
+                                name, None, 'GET')
             info = json.loads(resp.read())
             self.assertEquals(sorted(pkg_keys), sorted(info.keys()))
 
diff --git a/src/wok/plugins/gingerbase/tests/test_model.py b/src/wok/plugins/gingerbase/tests/test_model.py
index 2f2207b..289f166 100644
--- a/src/wok/plugins/gingerbase/tests/test_model.py
+++ b/src/wok/plugins/gingerbase/tests/test_model.py
@@ -273,4 +273,4 @@ class BaseModelTests(unittest.TestCase):
     def test_root_model(self):
         t = BaseModelTests.TestModel()
         t.foos_create({'item1': 10})
-        self.assertEquals(t.foos_get_list(), ['item1'])
\ No newline at end of file
+        self.assertEquals(t.foos_get_list(), ['item1'])
diff --git a/src/wok/plugins/gingerbase/tests/utils.py b/src/wok/plugins/gingerbase/tests/utils.py
index b800ac4..111cb02 100644
--- a/src/wok/plugins/gingerbase/tests/utils.py
+++ b/src/wok/plugins/gingerbase/tests/utils.py
@@ -169,8 +169,8 @@ def get_remote_iso_path():
     """
     host_arch = os.uname()[4]
     remote_path = ''
-    with open(os.path.join(PluginPaths('gingerbase').conf_dir, 'distros.d', 'fedora.json')) \
-            as fedora_isos:
+    with open(os.path.join(PluginPaths('gingerbase').conf_dir, 'distros.d',
+              'fedora.json')) as fedora_isos:
         # Get a list of dicts
         json_isos_list = json.load(fedora_isos)
         for iso in json_isos_list:
-- 
2.5.0




More information about the Kimchi-devel mailing list