flake8

authorArthur Lutz <arthur.lutz@logilab.fr>
changesetfca664268720
branchdefault
phasedraft
hiddenyes
parent revision#9251b14d9244 [views] add max pagination (avoid elasticsearch crash)
child revision#907c8a48b21b [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 fca66426872044771f64aba79faad4786f7c5b30
# Parent 9251b14d9244f1578694cf95b323b22c1c4696eb
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()