testcontainers / testcontainers/testcontainers-python
Bug: DockerCompose.client_args not working
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 2.3k
- Fork
- 386
- Merge medio
- 4h 40m
- PR unite (30g)
- 1
Descrizione
Describe the bug
I was trying to pass client_args to the DockerCompose constructor. However, I get the error:
Traceback (most recent call last):
File <removed>, in <module>
test_foo()
File <removed>, in test_foo
compose = DockerCompose(
^^^^^^^^^^^^^^
TypeError: DockerCompose.__init__() got an unexpected keyword argument 'client_args'
I presume this is because it is in the doc string, but not the actual class definition.
To Reproduce
from testcontainers.compose import DockerCompose
compose = DockerCompose(
client_args=True,
)
Runtime environment
testcontainers-python is 4.5.1 on Debian
Docker version 26.1.3-1, build b72abbb6f0351eb22e5c7bdbba9112fef6b41429
Docker Compose version v2.27.1
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia dal costruttore di DockerCompose e confronta gli argomenti accettati con il parametro documentato client_args. Riproduci il TypeError usando l’esempio; il lavoro è completato quando DockerCompose accetta client_args come documentato e il test pertinente ha esito positivo.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- docker, docker-compose, python
- Ambito
- devtools, testing-qa
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 30/100