-
Notifications
You must be signed in to change notification settings - Fork 426
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
2 changed files
with
32 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,27 @@ | ||
from solaar.gtk import create_parser | ||
|
||
|
||
def test_arg_parse(): | ||
parser = create_parser() | ||
res = parser.parse_args([]) | ||
|
||
assert res.debug == 0 | ||
assert res.hidraw_path is None | ||
assert res.restart_on_wake_up is False | ||
assert res.window is None | ||
assert res.battery_icons is None | ||
assert res.tray_icon_size is None | ||
|
||
|
||
def test_arg_parse_debug(): | ||
parser = create_parser() | ||
res = parser.parse_args(["--debug"]) | ||
|
||
assert res.debug == 1 | ||
|
||
|
||
def test_arg_parse_version(): | ||
parser = create_parser() | ||
res = parser.parse_args(["version"]) | ||
|
||
assert res |