Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Add CLI test changes and explanation

オープン
#23 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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 はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

twoscoops/Creating-and-Distributing-Python-Packages のほかの issue

twoscoops/Creating-and-Distributing-Python-Packages の issue をすべて見る

似ている issue

CLI の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。