mirror of
https://github.com/odoo/runbot.git
synced 2025-03-26 21:05:49 +07:00

- clean thread username - allow to write on params for debug (was mainly usefull to forbid it at the beginning) - imrpove some guidelines about method and actions naming/ ordering - move some code for a cleaner organisation. - remove some useless request.env.user (not useful anymore)
15 lines
350 B
Python
15 lines
350 B
Python
# -*- coding: utf-8 -*-
|
|
import logging
|
|
|
|
from .common import RunbotCase
|
|
|
|
_logger = logging.getLogger(__name__)
|
|
|
|
|
|
class TestRunbot(RunbotCase):
|
|
|
|
def test_warning_from_runbot_abstract(self):
|
|
warning = self.env['runbot.runbot']._warning('Test warning message')
|
|
|
|
self.assertTrue(self.env['runbot.warning'].browse(warning.id).exists())
|