mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-17 00:07:37 +02:00
add more cli tests for magic command
This commit is contained in:
@ -19,7 +19,13 @@ class MyTests(unittest.TestCase):
|
|||||||
'jc -p -r airport -I': 'airport -I | jc --airport -pr',
|
'jc -p -r airport -I': 'airport -I | jc --airport -pr',
|
||||||
'jc -prd airport -I': 'airport -I | jc --airport -prd',
|
'jc -prd airport -I': 'airport -I | jc --airport -prd',
|
||||||
'jc -p nonexistent command': 'nonexistent command',
|
'jc -p nonexistent command': 'nonexistent command',
|
||||||
'jc -ap': None
|
'jc -ap': None,
|
||||||
|
'jc -a arp -a': None,
|
||||||
|
'jc -v': None,
|
||||||
|
'jc -h': None,
|
||||||
|
'jc -h --arp': None,
|
||||||
|
'jc -h arp': None,
|
||||||
|
'jc -h arp -a': None
|
||||||
}
|
}
|
||||||
|
|
||||||
for command, expected_command in commands.items():
|
for command, expected_command in commands.items():
|
||||||
|
Reference in New Issue
Block a user