mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-24 09:28:42 -06:00
code coverage rogress
This commit is contained in:
parent
e49136b80b
commit
086e98aa98
@ -12,6 +12,10 @@ class TestDocumentPageHistory(common.TransactionCase):
|
|||||||
page.content = 'Test content updated'
|
page.content = 'Test content updated'
|
||||||
history_document = self.env['document.page.history']
|
history_document = self.env['document.page.history']
|
||||||
history_pages = history_document.search([('page_id', '=', page.id)])
|
history_pages = history_document.search([('page_id', '=', page.id)])
|
||||||
history_document.with_context(
|
active_ids = [i.id for i in history_pages]
|
||||||
active_ids=[i.id for i in history_pages]
|
|
||||||
).get_diff()
|
result = history_document.getDiff(active_ids[0], active_ids[0])
|
||||||
|
self.assertEqual(result, 'There are no changes in revisions.')
|
||||||
|
|
||||||
|
result = history_document.getDiff(active_ids[0], active_ids[1])
|
||||||
|
self.assertNotEqual(result, 'There are no changes in revisions.')
|
||||||
|
Loading…
Reference in New Issue
Block a user