[server/test] Turn "pull" method of LDAPFeedTestBase into a staticmethod 3.25
authorDenis Laxalde <denis.laxalde@logilab.fr>
Wed, 05 Apr 2017 10:34:04 +0200
branch3.25
changeset 12132 be2c14ea2736
parent 12131 8672535c3b89
child 12133 8743c3bda480
[server/test] Turn "pull" method of LDAPFeedTestBase into a staticmethod Because it does not use reference to "self" (which should be "cls" for classmethod).
cubicweb/server/test/unittest_ldapsource.py
--- a/cubicweb/server/test/unittest_ldapsource.py	Tue Apr 04 18:47:13 2017 +0200
+++ b/cubicweb/server/test/unittest_ldapsource.py	Wed Apr 05 10:34:04 2017 +0200
@@ -147,8 +147,8 @@
         cnx.commit()
         return cls.pull(cnx)
 
-    @classmethod
-    def pull(self, cnx):
+    @staticmethod
+    def pull(cnx):
         lfsource = cnx.repo.sources_by_uri['ldap']
         stats = lfsource.pull_data(cnx, force=True, raise_on_error=True)
         cnx.commit()