Skip to content

Commit

Permalink
Fixed bug where default env were overriding custom env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Nusnus committed Jan 8, 2024
1 parent 5e863ab commit 73692e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pytest_celery/vendors/worker/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def buildargs(cls) -> dict:
@classmethod
def env(cls, celery_worker_cluster_config: dict, initial: dict | None = None) -> dict:
env = initial or {}
env = {**env, **DEFAULT_WORKER_ENV.copy()}
env = {**DEFAULT_WORKER_ENV.copy(), **env}

config_mappings = [
("celery_broker_cluster_config", "CELERY_BROKER_URL"),
Expand Down

0 comments on commit 73692e6

Please sign in to comment.