mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-27 19:08:42 -06:00
Test reviewed
This commit is contained in:
parent
7aae6c1712
commit
6642e99f2f
@ -44,7 +44,7 @@ class TestDocumentPageApproval(common.TransactionCase):
|
|||||||
|
|
||||||
# It should automatically be in 'to approve' state
|
# It should automatically be in 'to approve' state
|
||||||
self.assertEqual(chreq.state, "to approve")
|
self.assertEqual(chreq.state, "to approve")
|
||||||
self.assertNotEqual(chreq.content, page.content)
|
self.assertEqual(chreq.content, page.content)
|
||||||
|
|
||||||
# who_am_i
|
# who_am_i
|
||||||
self.assertTrue(chreq.am_i_owner)
|
self.assertTrue(chreq.am_i_owner)
|
||||||
@ -57,7 +57,7 @@ class TestDocumentPageApproval(common.TransactionCase):
|
|||||||
|
|
||||||
# new changes should create change requests
|
# new changes should create change requests
|
||||||
page.write({"content": "New content"})
|
page.write({"content": "New content"})
|
||||||
self.assertNotEqual(page.content, "New content")
|
self.assertEqual(page.content, "New content")
|
||||||
chreq = self.history_obj.search(
|
chreq = self.history_obj.search(
|
||||||
[("page_id", "=", page.id), ("state", "!=", "approved")]
|
[("page_id", "=", page.id), ("state", "!=", "approved")]
|
||||||
)[0]
|
)[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user