10 lines
306 B
Python
10 lines
306 B
Python
import sys
|
|
import pytest
|
|
from pargs import parse_args
|
|
|
|
|
|
def test_get_appname():
|
|
_input = 'appname command positional --flag --optional=value'
|
|
args, kwargs = parse_args(_input.split())
|
|
assert args == ['appname', 'command', 'positional']
|
|
# assert kwargs == {'flag': True, 'optional': 'value'} |