* Update task.py get_custom_headers missing 'compression' key * Basic ElasticSearch / ElasticClient 8.x Support * Fix eager tasks does not populate name field * Fix: serialization error when gossip working * Stamping bugfix with group/chord header errback linking * Fixed issue: Flags broker_connection_retry_on_startup & broker_connection_retry aren’t reliable * Use string value for CELERY_SKIP_CHECKS envvar * Added initial support for python 3.11 * Fixed a small float value of retry_backoff * Update CELERY_TASK_EAGER setting in user guide * Fixed bug where retrying a task loses its stamps * Warn when an unnamed periodic task override another one. * Fix Task.handle_ignore not wrapping exceptions properly * Align revoke and revoke_by_stamped_headers return values (terminate=True) * Added signal triggered before fork * Deprecate pytz and use zoneinfo * recreate_module: set spec to the new module * Do not recommend using easy_install anymore * importlib_metadata remove deprecated entry point interfaces * New control command revoke_by_stamped_headers * Remove reference to old Python version * Stamping a task left the task properties dirty * Bugfix for nested group stamping on task replace * Add broker_channel_error_retry option * async chords should pass it's kwargs to the group/body. * Fix honor Django's TIME_ZONE setting. * Remove Python 3.4 compatibility code. * Use importlib instead of deprecated pkg_resources. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-celery?expand=0&rev=156
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 {
|