mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[FIX] runbot: browse a valid record id in test_warning
Since odoo/odoo@824a651 the test_warning_from_runbot_abstract was failing for a good reason, the `browse` parameter was a recordset instead of an id.
This commit is contained in:
parent
21077c690a
commit
4f4005896c
@ -9,6 +9,6 @@ _logger = logging.getLogger(__name__)
|
||||
class TestRunbot(RunbotCase):
|
||||
|
||||
def test_warning_from_runbot_abstract(self):
|
||||
warning_id = self.env['runbot.runbot'].warning('Test warning message')
|
||||
warning = self.env['runbot.runbot'].warning('Test warning message')
|
||||
|
||||
self.assertTrue(self.env['runbot.warning'].browse(warning_id).exists())
|
||||
self.assertTrue(self.env['runbot.warning'].browse(warning.id).exists())
|
||||
|
Loading…
Reference in New Issue
Block a user