# Path: pywal/export.py
# def template(colors, input_file, output_file=None):
# def flatten_colors(colors):
# def get_export_type(export_type):
# def every(colors, output_dir=CACHE_DIR):
# def color(colors, export_type, output_file=None):
# 
# Path: pywal/util.py
# class Color:
#     def __init__(self, hex_color):
#     def __str__(self):
#     def rgb(self):
#     def xrgba(self):
#     def rgba(self):
#     def alpha(self):
#     def alpha_dec(self):
#     def decimal(self):
#     def decimal_strip(self):
#     def octal(self):
#     def octal_strip(self):
#     def strip(self):
#     def red(self):
#     def green(self):
#     def blue(self):
#     def lighten(self, percent):
#     def darken(self, percent):
#     def saturate(self, percent):
# def read_file(input_file):
# def read_file_json(input_file):
# def read_file_raw(input_file):
# def save_file(data, export_file):
# def save_file_json(data, export_file):
# def create_dir(directory):
# def setup_logging():
# def hex_to_rgb(color):
# def hex_to_xrgba(color):
# def rgb_to_hex(color):
# def darken_color(color, amount):
# def lighten_color(color, amount):
# def blend_color(color, color2):
# def saturate_color(color, amount):
# def rgb_to_yiq(color):
# def disown(cmd):
# def get_pid(name):


import unittest
import unittest.mock
import shutil
import os
from pywal import export
from pywal import util
"""Test export functions."""



COLORS = util.read_file_json("tests/test_files/test_file.json")
COLORS["colors"].update(COLORS["special"])

TMP_DIR = "/tmp/wal"


class TestExportColors(unittest.TestCase):
    """Test the export functions."""

    def setUp(self):
        """> Setup export tests."""

# Path: pywal/export.py
# def template(colors, input_file, output_file=None):
# def flatten_colors(colors):
# def get_export_type(export_type):
# def every(colors, output_dir=CACHE_DIR):
# def color(colors, export_type, output_file=None):
# 
# Path: pywal/util.py
# class Color:
#     def __init__(self, hex_color):
#     def __str__(self):
#     def rgb(self):
#     def xrgba(self):
#     def rgba(self):
#     def alpha(self):
#     def alpha_dec(self):
#     def decimal(self):
#     def decimal_strip(self):
#     def octal(self):
#     def octal_strip(self):
#     def strip(self):
#     def red(self):
#     def green(self):
#     def blue(self):
#     def lighten(self, percent):
#     def darken(self, percent):
#     def saturate(self, percent):
# def read_file(input_file):
# def read_file_json(input_file):
# def read_file_raw(input_file):
# def save_file(data, export_file):
# def save_file_json(data, export_file):
# def create_dir(directory):
# def setup_logging():
# def hex_to_rgb(color):
# def hex_to_xrgba(color):
# def rgb_to_hex(color):
# def darken_color(color, amount):
# def lighten_color(color, amount):
# def blend_color(color, color2):
# def saturate_color(color, amount):
# def rgb_to_yiq(color):
# def disown(cmd):
# def get_pid(name):


# Path: tests/test_export.py
import unittest
import unittest.mock
import shutil
import os
from pywal import export
from pywal import util

"""Test export functions."""



COLORS = util.read_file_json("tests/test_files/test_file.json")
COLORS["colors"].update(COLORS["special"])

TMP_DIR = "/tmp/wal"


class TestExportColors(unittest.TestCase):
    """Test the export functions."""

    def setUp(self):
        """> Setup export tests."""

        util.create_dir(TMP_DIR)