-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add developer container option for deploy-local
- Loading branch information
1 parent
11eca91
commit fce02ce
Showing
7 changed files
with
84 additions
and
19 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
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,21 @@ | ||
""" | ||
tests for utility commands | ||
""" | ||
|
||
from edge_containers_cli.utils import ( | ||
append_arg, | ||
) | ||
|
||
|
||
def test_arg_append_existing(): | ||
input_ = "--arg1 A B --arg2 B --arg3 A B" | ||
target = "--arg1 A B --arg2 A B --arg3 A B" | ||
result = append_arg(input_, "--arg2", "A") | ||
assert target == result | ||
|
||
|
||
def test_arg_append_new(): | ||
input_ = "--arg1 A B --arg2 A B" | ||
target = "--arg1 A B --arg2 A B --arg3 A" | ||
result = append_arg(input_, "--arg3", "A") | ||
assert target == result |