[tests] activate automaticwebtest to show https://www.cubicweb.org/ticket/12983258
authorArthur Lutz <arthur.lutz@logilab.fr>
Wed, 18 May 2016 16:55:59 +0200
changeset 30 0f44d0b3152e
parent 27 ed66da7eb9f8
child 31 06b7a9deb061
[tests] activate automaticwebtest to show https://www.cubicweb.org/ticket/12983258
test/test_treeview.py
--- a/test/test_treeview.py	Fri Jul 10 09:39:59 2015 +0200
+++ b/test/test_treeview.py	Wed May 18 16:55:59 2016 +0200
@@ -14,35 +14,13 @@
 # You should have received a copy of the GNU Lesser General Public License along
 # with this program. If not, see <http://www.gnu.org/licenses/>.
 
-"""cubicweb-treeview automatic tests
-
-
-uncomment code below if you want to activate automatic test for your cube:
-
-.. sourcecode:: python
-
-    from cubicweb.devtools.testlib import AutomaticWebTest
-
-    class AutomaticWebTest(AutomaticWebTest):
-        '''provides `to_test_etypes` and/or `list_startup_views` implementation
-        to limit test scope
-        '''
+"""cubicweb-treeview automatic tests"""
+from cubicweb.devtools.testlib import AutomaticWebTest
 
-        def to_test_etypes(self):
-            '''only test views for entities of the returned types'''
-            return set(('My', 'Cube', 'Entity', 'Types'))
-
-        def list_startup_views(self):
-            '''only test startup views of the returned identifiers'''
-            return ('some', 'startup', 'views')
-"""
-
-from cubicweb.devtools import testlib
-
-class DefaultTC(testlib.CubicWebTC):
-    def test_something(self):
-        self.skipTest('this cube has no test')
-
+class AutomaticWebTest(AutomaticWebTest):
+    '''provides `to_test_etypes` and/or `list_startup_views` implementation
+    to limit test scope
+    '''
 
 if __name__ == '__main__':
     from logilab.common.testlib import unittest_main