Use pytest's conftest from swh-scheduler
This commit is contained in:
parent
fb9265bb03
commit
6030cb6315
1 changed files with 1 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue