# HG changeset patch # User Sylvain Thénault # Date 1489166331 -3600 # Node ID d19f7ec36d33a16edb5dd0897c6448864cd16a89 # Parent 70bb46dfa87bcd5dc7b50f4eba569677a759ef2a [test] Use existing reference to repo_source diff -r 70bb46dfa87b -r d19f7ec36d33 cubicweb/server/test/unittest_ldapsource.py --- a/cubicweb/server/test/unittest_ldapsource.py Fri Mar 10 18:04:25 2017 +0100 +++ b/cubicweb/server/test/unittest_ldapsource.py Fri Mar 10 18:18:51 2017 +0100 @@ -329,10 +329,10 @@ repo_source = self.repo.sources_by_uri['ldap'] with self.admin_access.repo_cnx() as cnx: source = cnx.execute('CWSource S WHERE S type="ldapfeed"').get_entity(0, 0) - config = source.repo_source.check_config(source) + config = repo_source.check_config(source) # filter with adim's phone number config['user-filter'] = u'(%s=%s)' % ('telephoneNumber', '109') - source.repo_source.update_config(source, config) + repo_source.update_config(source, config) cnx.commit() with self.repo.internal_cnx() as cnx: self.pull(cnx) @@ -347,7 +347,7 @@ 'activated') # unfilter, syt should be activated again config['user-filter'] = u'' - source.repo_source.update_config(source, config) + repo_source.update_config(source, config) cnx.commit() with self.repo.internal_cnx() as cnx: self.pull(cnx)