[MIG] document_page: Migration to 11.0

continue migration
This commit is contained in:
Gabriela Mogollon
2018-06-20 18:03:36 +00:00
committed by FernandoRomera
parent 125f97d388
commit 607e4a8b25
4 changed files with 4 additions and 23 deletions

View File

@@ -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)