mirror of
https://github.com/odoo/runbot.git
synced 2025-03-22 02:45:51 +07:00

A lot of things have to be mocked during runbot tests, as a consequence, a lot of patch decorators accumulate in a big stack uppon some tests methods. Also, a lot of mocks are used multiple times among tests. With this commit, a new RunbotClass is added that comes with patches ready to be started. A start_patcher helper method is available to start a patch and add the appropriate stop in a cleanup. Also, when a build is created in the tests, the _get_params method is always called, resulting in an annoying git warning. With this commit, a create_build method is added on the test class, that way the _get_params is always mocked when a build is created.
12 lines
296 B
Python
12 lines
296 B
Python
from . import common
|
|
from . import test_repo
|
|
from . import test_build_error
|
|
from . import test_branch
|
|
from . import test_build
|
|
from . import test_frontend
|
|
from . import test_schedule
|
|
from . import test_cron
|
|
from . import test_build_config_step
|
|
from . import test_event
|
|
from . import test_command
|