mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-06-23 11:01:31 +02:00
general: Rename export_colors to export.
This commit is contained in:
parent
453d0cfa39
commit
615321de94
@ -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
|
||||
|
@ -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)
|
Loading…
x
Reference in New Issue
Block a user