# HG changeset patch # User Denis Laxalde # Date 1530173240 -7200 # Node ID ec2ab8dc93a218da89481b32986617a623851528 # Parent 4c0f7ef3145cf7b99a5632cf8a54925c1ac023c9 [test] Add a trivial test for "wdoc" view We just make sure it gets rendered without errors (which wasn't the case before the previous patch). It does not work on Python 3; this will be fixed in next changeset. diff -r 4c0f7ef3145c -r ec2ab8dc93a2 cubicweb/web/test/unittest_views_wdoc.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cubicweb/web/test/unittest_views_wdoc.py Thu Jun 28 10:07:20 2018 +0200 @@ -0,0 +1,14 @@ +from cubicweb.devtools import testlib + + +class WdocViewsTC(testlib.CubicWebTC): + + def test(self): + with self.admin_access.web_request(fid='main') as req: + page = req.view('wdoc') + self.assertIn(u'Site documentation', page) + + +if __name__ == '__main__': + import unittest + unittest.main()