[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.
--- /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()