mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-19 03:42:19 -06:00
[MIG] document_page: Migration to 11.0
continue migration
This commit is contained in:
committed by
FernandoRomera
parent
125f97d388
commit
607e4a8b25
@@ -1,6 +1,5 @@
|
||||
|
||||
from odoo.exceptions import UserError
|
||||
from odoo.tests import common
|
||||
from odoo import _
|
||||
|
||||
|
||||
class TestDocumentPageShowDiff(common.TransactionCase):
|
||||
@@ -26,10 +25,7 @@ class TestDocumentPageShowDiff(common.TransactionCase):
|
||||
|
||||
history_pages = history_document.search([('page_id', '=', page.id)])
|
||||
|
||||
with self.assertRaises(Exception) as context:
|
||||
with self.assertRaises(UserError):
|
||||
show_diff_object.with_context(
|
||||
active_ids=[i.id for i in history_pages]
|
||||
)._get_diff()
|
||||
|
||||
self.assertTrue(_("Select one or maximum two history revisions!")
|
||||
in context.exception)
|
||||
|
||||
Reference in New Issue
Block a user