aboutsummaryrefslogtreecommitdiff
path: root/tests/test_main.py
blob: ad0f6fed5eaa916e5e3ab94abb60e1956026ff20 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"""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()