tests: Use wal functions.

This commit is contained in:
Dylan Araps 2017-07-22 10:10:05 +10:00
parent c6147fd0eb
commit ccad5150e6

View File

@ -2,7 +2,7 @@
import unittest
import pathlib
from pywal import template
from pywal import wal
from pywal import util
@ -21,7 +21,7 @@ class TestExportColors(unittest.TestCase):
output_dir = pathlib.Path("/tmp")
template_dir = pathlib.Path("tests/test_files/templates")
template.export_all_templates(COLORS, output_dir, template_dir)
wal.export_all_templates(COLORS, output_dir, template_dir)
result = pathlib.Path("/tmp/test_template").is_file()
self.assertTrue(result)