# HG changeset patch # User Denis Laxalde # Date 1491381244 -7200 # Node ID be2c14ea2736a045f517dc4fb170c6874c53ec0f # Parent 8672535c3b89d424ed03c90a27e68825e4021504 [server/test] Turn "pull" method of LDAPFeedTestBase into a staticmethod Because it does not use reference to "self" (which should be "cls" for classmethod). diff -r 8672535c3b89 -r be2c14ea2736 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()