-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from algorandfoundation/help-output
chore(tests): Added tests for help output
- Loading branch information
Showing
12 changed files
with
96 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Usage: algokit goal [OPTIONS] [GOAL_ARGS]... | ||
|
||
Options: | ||
--console / --no-console Open a Bash console so you can execute multiple goal | ||
commands and/or interact with a filesystem. | ||
-h, --help Show this message and exit. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Usage: algokit init [OPTIONS] | ||
|
||
Initializes a new project from a template. | ||
|
||
Options: | ||
--name TEXT Name of the directory / repository to create. | ||
--template [simple|beaker] Name of an official template to use. | ||
--template-url URL URL to a git repo with a custom project template. | ||
--accept-template-url Accept the specified template URL, acknowledging | ||
the security implications of an unofficial | ||
template. | ||
--git / --no-git Initialise git repository in directory after | ||
creation. | ||
--defaults Automatically choose default answers without | ||
asking when creating this template. | ||
-a, --answer <key> <value> Answers key/value pairs to pass to the template. | ||
-h, --help Show this message and exit. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from approvaltests import verify # type: ignore | ||
from utils.click_invoker import invoke | ||
|
||
|
||
def test_sandbox_help(): | ||
result = invoke("sandbox -h") | ||
|
||
assert result.exit_code == 0 | ||
verify(result.output) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Usage: algokit sandbox [OPTIONS] COMMAND [ARGS]... | ||
|
||
Options: | ||
-h, --help Show this message and exit. | ||
|
||
Commands: | ||
console Run the Algorand goal CLI against the AlgoKit Sandbox via a Bash | ||
console so you can execute multiple goal commands and/or interact | ||
with a filesystem. | ||
reset Reset the AlgoKit Sandbox. | ||
start Start the AlgoKit Sandbox. | ||
status Check the status of the AlgoKit Sandbox. | ||
stop Stop the AlgoKit Sandbox. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from approvaltests import verify # type: ignore | ||
from utils.click_invoker import invoke | ||
|
||
|
||
def test_help(): | ||
result = invoke("-h") | ||
|
||
assert result.exit_code == 0 | ||
verify(result.output) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Usage: algokit [OPTIONS] COMMAND [ARGS]... | ||
|
||
AlgoKit is your one-stop shop to develop applications on the Algorand | ||
blockchain. | ||
|
||
Options: | ||
--version Show the version and exit. | ||
-v, --verbose Enable logging of DEBUG messages to the console. | ||
--color / --no-color Force enable or disable of console output styling. | ||
-h, --help Show this message and exit. | ||
|
||
Commands: | ||
goal Run the Algorand goal CLI against the AlgoKit Sandbox. | ||
init Initializes a new project. | ||
sandbox Manage the AlgoKit sandbox. |