flake8

authorArthur Lutz <arthur.lutz@logilab.fr>
changesetf859339123c8
branchdefault
phasepublic
hiddenno
parent revision#5e539ec0c9b5 [views] add max pagination (avoid elasticsearch crash) (closes #17049617)
child revision#cf0931e576e2 [views] debug-es also displays elastic search response
files modified by this revision
ccplugin.py
test/test_compose_search.py
test/test_parents.py
# HG changeset patch
# User Arthur Lutz <arthur.lutz@logilab.fr>
# Date 1484652644 -3600
# Tue Jan 17 12:30:44 2017 +0100
# Node ID f859339123c83b5b28da1aa39590d13aa69bd68e
# Parent 5e539ec0c9b53cefd1dddb4a03fd1213d2392e95
flake8

diff --git a/ccplugin.py b/ccplugin.py
@@ -104,6 +104,7 @@
1                      yield data
2 
3      def customize_data(self, data):
4          pass
5 
6 +
7  CWCTL.register(IndexInES)
diff --git a/test/test_compose_search.py b/test/test_compose_search.py
@@ -61,7 +61,8 @@
8          # Q('multi_match', query='this', fields=())]).to_dict())
9 
10      def test_or_on_its_own(self):
11          self.assertTrue(self.compose_search('or').to_dict())
12 
13 +
14  if __name__ == '__main__':
15      unittest.main()
diff --git a/test/test_parents.py b/test/test_parents.py
@@ -94,8 +94,9 @@
16              indexer = cnx.vreg['es'].select('indexer', cnx)
17              es = indexer.get_connection()
18              es.indices.delete(self.config['index-name'])
19          super(ParentsSearchTC, self).tearDown()
20 
21 +
22  if __name__ == '__main__':
23      from logilab.common.testlib import unittest_main
24      unittest_main()