Use pytest's conftest from swh-scheduler

This commit is contained in:
David Douard 2019-01-10 09:50:05 +01:00
parent fb9265bb03
commit 6030cb6315

View file

@ -1,9 +1,5 @@
import pytest
@pytest.fixture(scope='session')
def celery_enable_logging():
return True
from swh.scheduler.tests.conftest import * # noqa
@pytest.fixture(scope='session')
@ -16,13 +12,3 @@ def celery_includes():
'swh.lister.npm.tasks',
'swh.lister.pypi.tasks',
]
# override the celery_session_app fixture to monkeypatch the 'main'
# swh.scheduler.celery_backend.config.app Celery application
# with the test application.
@pytest.fixture(scope='session')
def swh_app(celery_session_app):
import swh.scheduler.celery_backend.config
swh.scheduler.celery_backend.config.app = celery_session_app
yield celery_session_app