forked from pool/python-celery
- Update to version 5.2.7 * Depend on the maintained python-consul2 library. (#6544). * Use result_chord_join_timeout instead of hardcoded default value. * Upgrade AzureBlockBlob storage backend to use Azure blob storage library v12 (#6580). * Exit celery with non zero exit value if failing (#6602). * Raise BackendStoreError when set value is too large for Redis. * Trace task optimizations are now set via Celery app instance. * Add store_eager_result setting so eager tasks can store result on the result backend (#6614). * Allow heartbeats to be sent in tests (#6632). * Simulate more exhaustive delivery info in apply(). * Start chord header tasks as soon as possible (#6576). * --quiet flag now actually makes celery avoid producing logs (#6599). * Update platforms.py "superuser privileges" check (#6600). * fnmatch.translate() already translates globs for us. (#6668). * Upgrade some syntax to Python 3.6+. * Fix checking expiration of X.509 certificates (#6678). * Fix JSON decoding errors when using MongoDB as backend (#6675). * Allow configuration of RedisBackend's health_check_interval (#6666). * Tasks can now have required kwargs at any order (#6699). * Initial support of python 3.9 added. * Add Python 3.10 support (#6807). * Fix docstring for Signal.send to match code (#6835). * Chords get body_type independently to handle cases where body.type does not exist (#6847). * Fix multithreaded backend usage (#6851). * Fix Open Collective donate button (#6848). OBS-URL: https://build.opensuse.org/request/show/989213 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-celery?expand=0&rev=147
43 lines
1.7 KiB
Diff
43 lines
1.7 KiB
Diff
Index: celery-5.2.6/celery/contrib/pytest.py
|
|
===================================================================
|
|
--- celery-5.2.6.orig/celery/contrib/pytest.py
|
|
+++ celery-5.2.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.2.6/t/unit/conftest.py
|
|
===================================================================
|
|
--- celery-5.2.6.orig/t/unit/conftest.py
|
|
+++ celery-5.2.6/t/unit/conftest.py
|
|
@@ -64,6 +64,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 {
|