general: Rename export_colors to export.

This commit is contained in:
Dylan Araps 2017-06-30 09:54:10 +10:00
parent 453d0cfa39
commit 615321de94
3 changed files with 5 additions and 5 deletions

View File

@ -8,7 +8,7 @@ import shutil
import sys
from pywal.settings import CACHE_DIR, __version__
from pywal import export_colors
from pywal import export
from pywal import gen_colors
from pywal import set_colors
from pywal import reload
@ -102,7 +102,7 @@ def process_args(args):
# -i or -f
if args.i or args.f:
set_colors.send_sequences(colors_plain, args.t)
export_colors.export_all_templates(colors_plain)
export.export_all_templates(colors_plain)
reload.reload_env()
# -o

View File

@ -2,7 +2,7 @@
import unittest
import pathlib
from pywal import export_colors
from pywal import export
from pywal import util
@ -11,7 +11,7 @@ COLORS = util.read_file_json("tests/test_files/test_file.json")
class TestExportColors(unittest.TestCase):
"""Test the export_colors functions."""
"""Test the export functions."""
def test_template(self):
"""> Test substitutions in template file."""
@ -21,7 +21,7 @@ class TestExportColors(unittest.TestCase):
output_dir = pathlib.Path("/tmp")
template_dir = pathlib.Path("tests/test_files/templates")
export_colors.export_all_templates(COLORS, template_dir, output_dir)
export.export_all_templates(COLORS, template_dir, output_dir)
result = pathlib.Path("/tmp/test_template").is_file()
self.assertTrue(result)