-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build CLI: User config integration tests & Name alias
* Add test for user configuration commands * Change command naming alias
- Loading branch information
1 parent
b662bc4
commit 9e470c3
Showing
3 changed files
with
43 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
""" | ||
Provides methods to test the User Configurations commands in Chipmunk Build CLI Tool | ||
""" | ||
|
||
from utls import run_command, print_blue_bold, print_green_bold | ||
|
||
CONFIG_BASE_COMMAND = [ | ||
"cargo", | ||
"run", | ||
"-r", | ||
"--", | ||
"chipmunk", | ||
"config", | ||
] | ||
|
||
|
||
def run_user_configs_commands(): | ||
"""Runs commands to print the default configurations and the path for the configurations file""" | ||
print_blue_bold("Running print configurations file path Command...") | ||
print_path_cmd = CONFIG_BASE_COMMAND.copy() | ||
print_path_cmd.append("path") | ||
run_command(print_path_cmd) | ||
print_green_bold("*** Print configurations file path Command Succeeded ***") | ||
|
||
print_blue_bold("Running print default configurations Command...") | ||
print_default_cmd = CONFIG_BASE_COMMAND.copy() | ||
print_default_cmd.append("default") | ||
run_command(print_default_cmd) | ||
print_green_bold("*** Print default configurations Command Succeeded ***") | ||
|
||
|
||
if __name__ == "__main__": | ||
run_user_configs_commands() |
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