mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
The new 1.0.0 version of pytest-celery will move towards a Docker-based approach for smoke and production-like testing, bringing in a number of dependencies that we don't currently need. Since the pre-1.0.0 version of pytest-celery was just a shim for ``celery.contrib.pytest``, we can simply load the latter for API, integration and Selenium tests.
20 lines
338 B
Python
20 lines
338 B
Python
import tempfile
|
|
|
|
import pytest
|
|
|
|
from galaxy_test.conftest import ( # noqa: F401
|
|
pytest_configure,
|
|
pytest_plugins,
|
|
)
|
|
|
|
|
|
@pytest.fixture(scope="session")
|
|
def celery_includes():
|
|
return ["galaxy.celery.tasks"]
|
|
|
|
|
|
@pytest.fixture
|
|
def temp_file():
|
|
with tempfile.NamedTemporaryFile(delete=True, mode="wb") as fh:
|
|
yield fh
|