runbot/runbot/tests/__init__.py
Christophe Monniez 73f720a55c [IMP] runbot: refactor tests
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.
2019-12-02 16:36:56 +01:00

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