mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-08-08 22:04:32 +02:00
api: Remove wal.py
This commit is contained in:
@ -1,23 +1,19 @@
|
||||
"""Test image functions."""
|
||||
import pathlib
|
||||
import unittest
|
||||
|
||||
from pywal import wal
|
||||
|
||||
|
||||
CACHE_DIR = pathlib.Path("/tmp/wal")
|
||||
from pywal import image
|
||||
|
||||
|
||||
class TestImage(unittest.TestCase):
|
||||
"""Test image functions."""
|
||||
def test_get_img(self):
|
||||
"""> Validate image file."""
|
||||
result = wal.get_image("tests/test_files/test.jpg", CACHE_DIR)
|
||||
result = image.get("tests/test_files/test.jpg")
|
||||
self.assertEqual(result, "tests/test_files/test.jpg")
|
||||
|
||||
def test_get_img_dir(self):
|
||||
"""> Validate image directory."""
|
||||
result = wal.get_image("tests/test_files", CACHE_DIR)
|
||||
result = image.get("tests/test_files")
|
||||
self.assertEqual(result, "tests/test_files/test2.jpg")
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user