Skip to content

Commit

Permalink
Tests: Make it possible to run suite without celery pytest plugin. Cl…
Browse files Browse the repository at this point in the history
…oses celery#3530
  • Loading branch information
ask committed Oct 31, 2016
1 parent 9fbd208 commit d0c8898
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions t/unit/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,22 @@
from kombu import Queue

from celery.backends.cache import CacheBackend, DummyClient
# we have to import the pytest plugin fixtures here,
# in case user did not do the `python setup.py develop` yet,
# that installs the pytest plugin into the setuptools registry.
from celery.contrib.pytest import (
celery_app, celery_enable_logging, depends_on_current_app,
)
from celery.contrib.testing.app import Trap, TestApp
from celery.contrib.testing.mocks import (
TaskMessage, TaskMessage1, task_message_from_sig,
)

# Tricks flake8 into silencing redefining fixtures warnings.
__all__ = [
'celery_app', 'celery_enable_logging', 'depends_on_current_app',
]

try:
WindowsError = WindowsError # noqa
except NameError:
Expand Down

0 comments on commit d0c8898

Please sign in to comment.