Add CLI test changes and explanation
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 45/100
- issue の種類
- ドキュメント
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- python
- 領域
- cli, documentation
調査の方向性
Section 5.1 と test_.py の test_command_line_interface から始めます。['4'] の入力と ['--help'] の結果を含む runner.invoke の例を確認し、その後 CLI テストの説明と関連するテスト変更を更新します。完了の条件は、レッスンで文字列リストの入力と、Usage: main と package-name の違いを説明していることです。
索引モデルが issue の本文から書いたものです。
説明
Location within the Course
- Section:5
- Lesson:1
- Language:English
Description
We create the CLI in 5.1 but we don't talk about how to make the test_command_line_interface in test_<package>.py work.
If there are inputs for the command line, they need to be specified as strings in a list as in result = runner.invoke(cli.main, ['4']).
Also, maybe because of the way we have a cli.py file, calling help_result = runner.invoke(cli.main, ['--help']) in the test code gives a different answer than <package> --help on the command line. Instead of "Usage: <package>", it returns "Usage: main".
- 主要言語
- 言語のデータがありません
- スター
- 8
- フォーク
- 0
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
twoscoops/Creating-and-Distributing-Python-Packages のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
twoscoops/Creating-and-Distributing-Python-Packages#36 · コメント 2 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 35/100
twoscoops/Creating-and-Distributing-Python-Packages#35 · コメント 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 50/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
twoscoops/Creating-and-Distributing-Python-Packages の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
stephrobert/dsoxlab#238 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
sublimehq/package_control#1779 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
nwg-piotr/nwg-displays#145 ·
-
Bob Shell support オープンenhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100