forked from pool/python-celery
- Update to 5.4.0 * Add a Task class specialised for Django * Add Google Cloud Storage (GCS) backend * Added documentation to the smoke tests infra * Bugfix: Missing id on chain * Bugfix: Worker not consuming tasks after Redis broker restart * Catch UnicodeDecodeError when opening corrupt beat-schedule.db * chore(ci): Enhance CI with workflow_dispatch for targeted debugging * Enable efficient chord when using dynamicdb as backend store * feat(daemon): allows daemonization options to be fetched from app settings * Fix DeprecationWarning: datetime.datetime.utcnow() * Fix recursive result parents on group in middle of chain * Hotfix: Smoke tests didn’t allow customizing the worker’s command arguments, now it does * Make custom remote control commands available in CLI * Print safe_say() to stdout for non-error flows * Support moto 5.0 - Drop support-moto-5.patch OBS-URL: https://build.opensuse.org/request/show/1185136 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-celery?expand=0&rev=158
43 lines
1.7 KiB
Diff
43 lines
1.7 KiB
Diff
Index: celery-5.3.6/celery/contrib/pytest.py
|
|
===================================================================
|
|
--- celery-5.3.6.orig/celery/contrib/pytest.py
|
|
+++ celery-5.3.6/celery/contrib/pytest.py
|
|
@@ -19,16 +19,6 @@ NO_WORKER = os.environ.get('NO_WORKER')
|
|
# Well, they're called fixtures....
|
|
|
|
|
|
-def pytest_configure(config):
|
|
- """Register additional pytest configuration."""
|
|
- # add the pytest.mark.celery() marker registration to the pytest.ini [markers] section
|
|
- # this prevents pytest 4.5 and newer from issuing a warning about an unknown marker
|
|
- # and shows helpful marker documentation when running pytest --markers.
|
|
- config.addinivalue_line(
|
|
- "markers", "celery(**overrides): override celery configuration for a test case"
|
|
- )
|
|
-
|
|
-
|
|
@contextmanager
|
|
def _create_app(enable_logging=False,
|
|
use_trap=False,
|
|
Index: celery-5.3.6/t/unit/conftest.py
|
|
===================================================================
|
|
--- celery-5.3.6.orig/t/unit/conftest.py
|
|
+++ celery-5.3.6/t/unit/conftest.py
|
|
@@ -56,6 +56,16 @@ class WhateverIO(io.StringIO):
|
|
_SIO_write(self, data.decode() if isinstance(data, bytes) else data)
|
|
|
|
|
|
+def pytest_configure(config):
|
|
+ """Register additional pytest configuration."""
|
|
+ # add the pytest.mark.celery() marker registration to the pytest.ini [markers] section
|
|
+ # this prevents pytest 4.5 and newer from issueing a warning about an unknown marker
|
|
+ # and shows helpful marker documentation when running pytest --markers.
|
|
+ config.addinivalue_line(
|
|
+ "markers", "celery(**overrides): override celery configuration for a test case"
|
|
+ )
|
|
+
|
|
+
|
|
@pytest.fixture(scope='session')
|
|
def celery_config():
|
|
return {
|