equal
deleted
inserted
replaced
31 with self.admin_access.web_request() as req: |
31 with self.admin_access.web_request() as req: |
32 context = self.context(req) |
32 context = self.context(req) |
33 self.assertEqual(rest_publish(context, ':eid:`%s`' % context.eid), |
33 self.assertEqual(rest_publish(context, ':eid:`%s`' % context.eid), |
34 '<p><a class="reference" href="http://testing.fr/cubicweb/cwuser/admin">' |
34 '<p><a class="reference" href="http://testing.fr/cubicweb/cwuser/admin">' |
35 '#%s</a></p>\n' % context.eid) |
35 '#%s</a></p>\n' % context.eid) |
36 self.assertEqual(rest_publish(context, ':eid:`%s:some text`' % context.eid), |
36 self.assertEqual(rest_publish(context, ':eid:`%s:some text`' % context.eid), |
37 '<p><a class="reference" href="http://testing.fr/cubicweb/cwuser/admin">' |
37 '<p><a class="reference" href="http://testing.fr/cubicweb/cwuser/admin">' |
38 'some text</a></p>\n') |
38 'some text</a></p>\n') |
39 |
39 |
40 def test_bad_rest_no_crash(self): |
40 def test_bad_rest_no_crash(self): |
41 with self.admin_access.web_request() as req: |
41 with self.admin_access.web_request() as req: |
58 | *-* | N1#N2 | |
58 | *-* | N1#N2 | |
59 -------------------------- |
59 -------------------------- |
60 |
60 |
61 ''') |
61 ''') |
62 |
62 |
|
63 def test_disable_field_name_colspan(self): |
|
64 with self.admin_access.web_request() as req: |
|
65 context = self.context(req) |
|
66 value = rest_publish(context, '''my field list: |
|
67 |
|
68 :a long dumb param name: value |
|
69 ''') |
|
70 self.assertNotIn('colspan', value) |
63 |
71 |
64 def test_rql_role_with_vid(self): |
72 def test_rql_role_with_vid(self): |
65 with self.admin_access.web_request() as req: |
73 with self.admin_access.web_request() as req: |
66 context = self.context(req) |
74 context = self.context(req) |
67 out = rest_publish(context, ':rql:`Any X WHERE X is CWUser:table`') |
75 out = rest_publish(context, ':rql:`Any X WHERE X is CWUser:table`') |