general: Rename gen_colors to magic

This commit is contained in:
Dylan Araps 2017-06-30 10:21:20 +10:00
parent 23571cc620
commit 5015f2706c
3 changed files with 8 additions and 8 deletions

View File

@ -10,11 +10,11 @@ import sys
from pywal.settings import CACHE_DIR, __version__
from pywal import export
from pywal import image
from pywal import gen_colors
from pywal import sequences
from pywal import magic
from pywal import reload
from pywal import wallpaper
from pywal import sequences
from pywal import util
from pywal import wallpaper
def get_args():
@ -91,7 +91,7 @@ def process_args(args):
image_file = image.get_image(args.i)
# Create a list of hex colors.
colors_plain = gen_colors.get_colors(image_file, args.q)
colors_plain = magic.get_colors(image_file, args.q)
if not args.n:
wallpaper.set_wallpaper(image_file)

View File

@ -1,5 +1,5 @@
"""
Generate a colorscheme.
Generate a colorscheme using imagemagick.
"""
import re
import shutil

View File

@ -1,7 +1,7 @@
"""Test gen functions."""
"""Test imagemagick functions."""
import unittest
from pywal import gen_colors
from pywal import magic
class TestGenColors(unittest.TestCase):
@ -9,7 +9,7 @@ class TestGenColors(unittest.TestCase):
def test_gen_colors(self):
"""> Generate a colorscheme."""
result = gen_colors.gen_colors("tests/test_files/test.jpg")
result = magic.gen_colors("tests/test_files/test.jpg")
self.assertEqual(result[0], "#0F191A")