Commit 4b6e977d authored by Nsukami Patrick's avatar Nsukami Patrick
Browse files

[autopep8] E731 - Use a def when use do not assign a lambda expression

parent 48aae07a4cb3
......@@ -11,7 +11,7 @@ class IndexHookTC(testlib.CubicWebTC):
def setup_database(self):
super(IndexHookTC, self).setup_database()
self.orig_config_for = CubicWebConfiguration.config_for
config_for = lambda appid: self.config # noqa
def config_for(appid): return self.config # noqa
CubicWebConfiguration.config_for = staticmethod(config_for)
self.config['elasticsearch-locations'] = 'http://nonexistant.elastic.search:9200'
self.config['index-name'] = 'unittest_index_name'
......
......@@ -15,7 +15,7 @@ class IFullTextIndexSerializableTC(testlib.CubicWebTC):
def setup_database(self):
super(IFullTextIndexSerializableTC, self).setup_database()
self.orig_config_for = CubicWebConfiguration.config_for
config_for = lambda appid: self.config # noqa
def config_for(appid): return self.config # noqa
CubicWebConfiguration.config_for = staticmethod(config_for)
self.config['elasticsearch-locations'] = 'http://nonexistant.elastic.search:9200'
self.config['index-name'] = 'unittest_index_name'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment