Skip to content

Commit a327b0e

Browse files
authored
Fixed bug where default env were overriding custom env vars (#154)
1 parent 5e863ab commit a327b0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pytest_celery/vendors/worker/container.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def buildargs(cls) -> dict:
7171
@classmethod
7272
def env(cls, celery_worker_cluster_config: dict, initial: dict | None = None) -> dict:
7373
env = initial or {}
74-
env = {**env, **DEFAULT_WORKER_ENV.copy()}
74+
env = {**DEFAULT_WORKER_ENV.copy(), **env}
7575

7676
config_mappings = [
7777
("celery_broker_cluster_config", "CELERY_BROKER_URL"),

0 commit comments

Comments
 (0)