testcontainers / testcontainers/testcontainers-python
Bug: DockerCompose.client_args not working
未关闭
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 2.3k
- 派生
- 386
- 平均合并
- 4 小时 40 分钟
- 30 天内合并 PR
- 1
描述
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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 DockerCompose 构造函数入手,将其接受的参数与文档中的 client_args 参数进行比较。使用示例复现 TypeError;当 DockerCompose 按文档所述接受 client_args 且相关测试通过时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- docker, docker-compose, python
- 领域
- devtools, testing-qa
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 30/100