mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-08-09 06:24:54 +02:00
tests: Fix tests.
This commit is contained in:
@ -1,21 +0,0 @@
|
||||
"""Test image functions."""
|
||||
import unittest
|
||||
|
||||
from pywal import image
|
||||
|
||||
|
||||
class TestImage(unittest.TestCase):
|
||||
"""Test image functions."""
|
||||
def test_get_img(self):
|
||||
"""> Validate image file."""
|
||||
result = image.get_image("tests/test_files/test.jpg")
|
||||
self.assertEqual(result, "tests/test_files/test.jpg")
|
||||
|
||||
def test_get_img_dir(self):
|
||||
"""> Validate image directory."""
|
||||
result = image.get_image("tests/test_files")
|
||||
self.assertEqual(result, "tests/test_files/test.jpg")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
Reference in New Issue
Block a user