mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-06-23 11:01:31 +02:00
tests: process args
This commit is contained in:
parent
1570dd003d
commit
9b695da635
@ -20,17 +20,20 @@ class TestMain(unittest.TestCase):
|
|||||||
|
|
||||||
def test_version(self):
|
def test_version(self):
|
||||||
"""> Test arg parsing (-v)"""
|
"""> Test arg parsing (-v)"""
|
||||||
|
with self.assertRaises(SystemExit):
|
||||||
args = __main__.get_args(["-v"])
|
args = __main__.get_args(["-v"])
|
||||||
self.assertTrue(args.v)
|
__main__.process_args(args)
|
||||||
|
|
||||||
def test_quiet(self):
|
def test_quiet(self):
|
||||||
"""> Test arg parsing (-q)"""
|
"""> Test arg parsing (-q)"""
|
||||||
args = __main__.get_args(["-q"])
|
args = __main__.get_args(["-q"])
|
||||||
|
__main__.process_args(args)
|
||||||
self.assertTrue(args.q)
|
self.assertTrue(args.q)
|
||||||
|
|
||||||
def test_ext_script(self):
|
def test_ext_script(self):
|
||||||
"""> Test arg parsing (-o)"""
|
"""> Test arg parsing (-o)"""
|
||||||
args = __main__.get_args(["-o", "true"])
|
args = __main__.get_args(["-o", "true"])
|
||||||
|
__main__.process_args(args)
|
||||||
self.assertTrue(args.o)
|
self.assertTrue(args.o)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user