testcontainers / testcontainers/testcontainers-python
Bug: DockerCompose.client_args not working
オープン
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 2.3k
- フォーク
- 386
- 平均マージ
- 4時間 40分
- マージ済み PR(30日)
- 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
DockerCompose コンストラクターから始め、受け付ける引数とドキュメントに記載された client_args パラメーターを比較します。例を使って TypeError を再現します。DockerCompose がドキュメントどおりに client_args を受け付け、該当するテストがパスすれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- docker, docker-compose, python
- 領域
- devtools, testing-qa
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 30/100