File tree Expand file tree Collapse file tree 3 files changed +48
-3
lines changed
src/pytest_celery/vendors/worker Expand file tree Collapse file tree 3 files changed +48
-3
lines changed Original file line number Diff line number Diff line change @@ -442,6 +442,24 @@ We'll use the smoke tests worker to run the worker from the source code.
442442 def worker_queue (cls ) -> str :
443443 return " celery"
444444
445+ @ classmethod
446+ def command (cls , * args : str ) -> list[str ]:
447+ return super ().command(
448+ " --without-gossip" ,
449+ " --without-mingle" ,
450+ " --without-heartbeat" ,
451+ )
452+
453+
454+ @pytest.fixture
455+ def default_worker_container_cls () -> type[SmokeWorkerContainer]:
456+ return WorkerContainer
457+
458+
459+ @pytest.fixture (scope = " session" )
460+ def default_worker_container_session_cls () -> type[SmokeWorkerContainer]:
461+ return WorkerContainer
462+
445463
446464 celery_dev_worker_image = build(
447465 path = " ." ,
Original file line number Diff line number Diff line change @@ -78,14 +78,28 @@ def default_redis_backend_image() -> str:
7878###############################################################################
7979
8080
81+ @pytest .fixture (scope = "session" )
82+ def default_worker_celery_version () -> str :
83+ return "5.2.7"
84+
85+
8186@pytest .fixture (scope = "session" )
8287def default_worker_celery_log_level () -> str :
8388 return "INFO"
8489
8590
8691@pytest .fixture (scope = "session" )
87- def default_worker_celery_version () -> str :
88- return "5.2.7"
92+ def default_worker_celery_worker_queue () -> str :
93+ return "celery"
94+
95+
96+ @pytest .fixture
97+ def default_worker_command (default_worker_command : list [str ]) -> list [str ]:
98+ return default_worker_command + [
99+ "--without-gossip" ,
100+ "--without-mingle" ,
101+ "--without-heartbeat" ,
102+ ]
89103
90104
91105@pytest .fixture
Original file line number Diff line number Diff line change @@ -4,7 +4,20 @@ FROM python:3.10-slim-buster
44RUN adduser --disabled-password --gecos "" test_user
55
66# Install system dependencies
7- RUN apt-get update && apt-get install -y build-essential git
7+ RUN apt-get update && apt-get install -y build-essential \
8+ git \
9+ wget \
10+ make \
11+ curl \
12+ apt-utils \
13+ debconf \
14+ lsb-release \
15+ libmemcached-dev \
16+ libffi-dev \
17+ ca-certificates \
18+ pypy3 \
19+ pypy3-lib \
20+ sudo
821
922# Set arguments
1023ARG CELERY_VERSION=""
You can’t perform that action at this time.
0 commit comments