mirror of
https://github.com/dylanaraps/pywal.git
synced 2024-11-26 01:43:15 +01:00
20 lines
440 B
Python
20 lines
440 B
Python
"""Test __main__ functions."""
|
|
import unittest
|
|
|
|
from pywal import __main__
|
|
from pywal.settings import CACHE_DIR
|
|
|
|
|
|
class TestMain(unittest.TestCase):
|
|
"""Test the gen_colors functions."""
|
|
|
|
def test_clean(self):
|
|
"""> Test arg parsing (-c)"""
|
|
args = __main__.get_args(["-c"])
|
|
__main__.process_args(args)
|
|
self.assertFalse((CACHE_DIR / "schemes").is_dir())
|
|
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|