diff --git a/pywal/__main__.py b/pywal/__main__.py index 4236267..1b93341 100755 --- a/pywal/__main__.py +++ b/pywal/__main__.py @@ -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 diff --git a/pywal/export_colors.py b/pywal/export.py similarity index 100% rename from pywal/export_colors.py rename to pywal/export.py diff --git a/tests/test_export_colors.py b/tests/test_export.py similarity index 85% rename from tests/test_export_colors.py rename to tests/test_export.py index 6097fda..7204f48 100755 --- a/tests/test_export_colors.py +++ b/tests/test_export.py @@ -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)