mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-22 20:12:04 -06:00
test code coverage progress
This commit is contained in:
parent
8390365f46
commit
9dbe6eb31d
@ -16,8 +16,6 @@ class TestDocumentPageShowDiff(common.TransactionCase):
|
||||
history_document = self.env['document.page.history']
|
||||
history_pages = history_document.search([('page_id', '=', page.id)])
|
||||
|
||||
self.assertEqual(len([i.id for i in history_pages]), 2)
|
||||
|
||||
self.assertTrue(show_diff_object.with_context(
|
||||
active_ids=[i.id for i in history_pages]
|
||||
).get_diff())
|
||||
@ -26,8 +24,6 @@ class TestDocumentPageShowDiff(common.TransactionCase):
|
||||
|
||||
history_pages = history_document.search([('page_id', '=', page.id)])
|
||||
|
||||
self.assertEqual(len([i.id for i in history_pages]), 1)
|
||||
|
||||
with self.assertRaises(Exception) as context:
|
||||
show_diff_object.with_context(
|
||||
active_ids=[i.id for i in history_pages]
|
||||
|
Loading…
Reference in New Issue
Block a user