-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,27 @@ | ||
""" | ||
Test for the "apio config" command | ||
""" | ||
|
||
# -- apio config entry point | ||
from apio.commands.config import cli as cmd_config | ||
|
||
|
||
def test_config(clirunner, validate_cliresult, configenv): | ||
"""Test "apio config" with different parameters""" | ||
|
||
with clirunner.isolated_filesystem(): | ||
|
||
# -- Config the environment (conftest.configenv()) | ||
configenv() | ||
|
||
# -- Execute "apio config" | ||
result = clirunner.invoke(cmd_config) | ||
validate_cliresult(result) | ||
|
||
|
||
def test_config_list(clirunner, validate_cliresult, configenv): | ||
with clirunner.isolated_filesystem(): | ||
configenv() | ||
# -- Execute "apio config --list" | ||
result = clirunner.invoke(cmd_config, ['--list']) | ||
validate_cliresult(result) | ||
|
||
|
||
def test_config_exe(clirunner, validate_cliresult, configenv): | ||
with clirunner.isolated_filesystem(): | ||
configenv() | ||
# -- Execute "apio config --exe native" | ||
result = clirunner.invoke(cmd_config, ['--exe', 'native']) | ||
validate_cliresult(result) |