[server/test] Turn "pull" method of LDAPFeedTestBase into a staticmethod
Because it does not use reference to "self" (which should be "cls" for
classmethod).
--- 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()