summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-06-30 09:54:10 +1000
committerDylan Araps <dylan.araps@gmail.com>2017-06-30 09:54:10 +1000
commit615321de942ac4d75af72ba126ac5b69da203a72 (patch)
treefd13cb143ac508fb36bdbbb14729e0dc8be9d014
parent453d0cfa39e3b02ab6be6131b37050b3e6eca539 (diff)
general: Rename export_colors to export.
-rwxr-xr-xpywal/__main__.py4
-rwxr-xr-xpywal/export.py (renamed from pywal/export_colors.py)0
-rwxr-xr-xtests/test_export.py (renamed from tests/test_export_colors.py)6
3 files changed, 5 insertions, 5 deletions
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
index 29e0067..29e0067 100755
--- a/pywal/export_colors.py
+++ b/pywal/export.py
diff --git a/tests/test_export_colors.py b/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)