cubicweb/web/test/unittest_views_wdoc.py
author Arthur Lutz <arthur.lutz@logilab.fr>
Fri, 06 Dec 2019 13:21:18 +0100
changeset 12790 6f74e28be048
parent 12337 04ff0d3ef1d3
permissions -rw-r--r--
[doc/book] add RQL use cases with search/card/python/javascript Related to https://www.cubicweb.org/ticket/3899077

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)
        # This part is renderend through rst extension (..winclude directive).
        self.assertIn(u'This web application is based on the CubicWeb knowledge management system',
                      page)


if __name__ == '__main__':
    import unittest
    unittest.main()