File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
tests/integration/api/custom_setup Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ Each fixture is responsible for a different layer of the initialization procedur
3535
3636 default_worker_container = container(
3737 image="{celery_base_worker_image.id}",
38+ ports=fxtr("default_worker_ports"),
3839 environment=fxtr("default_worker_env"),
3940 network="{default_pytest_celery_network.name}",
4041 volumes={"{default_worker_volume.name}": DEFAULT_WORKER_VOLUME},
@@ -77,7 +78,7 @@ to provide the worker with the broker and result backend configurations accordin
7778Network
7879#######
7980
80- The worker will use the default session network that will be created for each test
81+ The worker will use the default network that will be created for each test
8182case to allow the worker component to communicate with the other components.
8283
8384The network isolation allows multiple setups to run in parallel without interfering with each other.
@@ -128,6 +129,10 @@ code and configuration.
128129 },
129130 },
130131
132+ .. tip::
133+
134+ When :ref:`vscode`, the bind value is what should be set for the ``remoteRoot`` in the ``launch.json`` configuration.
135+
131136Wrapper Class
132137#############
133138
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ def worker_queue(cls) -> str:
4747
4848celery4_worker_container = container (
4949 image = "{celery4_worker_image.id}" ,
50+ ports = fxtr ("default_worker_ports" ),
5051 environment = fxtr ("default_worker_env" ),
5152 network = "{default_pytest_celery_network.name}" ,
5253 volumes = {"{default_worker_volume.name}" : DEFAULT_WORKER_VOLUME },
@@ -105,6 +106,7 @@ def default_worker_container_session_cls() -> type[CeleryWorkerContainer]:
105106
106107default_worker_container = container (
107108 image = "{celery5_worker_image.id}" ,
109+ ports = fxtr ("default_worker_ports" ),
108110 environment = fxtr ("default_worker_env" ),
109111 network = "{default_pytest_celery_network.name}" ,
110112 volumes = {"{default_worker_volume.name}" : DEFAULT_WORKER_VOLUME },
You can’t perform that action at this time.
0 commit comments