Files
galaxy/test/integration/conftest.py
T
Nicola Soranzo 1fef07cb24 Replace pytest-celery with `celery.contrib.pytest` plugin loading
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.
2024-04-16 17:16:52 +01:00

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