runbot/runbot/tests/test_runbot.py
Xavier-Do 435ac449f5 [FIX] runbot: various fixes and ref
- 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)
2023-09-25 10:52:16 +02:00

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