mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(tests): remove test for frontend build
This commit is contained in:
parent
daf00efa4d
commit
0a15f3fc35
@ -10,7 +10,6 @@ from PIL import Image
|
||||
|
||||
import invokeai.app.assets.images as image_assets
|
||||
import invokeai.configs as configs
|
||||
import invokeai.frontend.web.dist as frontend
|
||||
|
||||
|
||||
class ConfigsTestCase(unittest.TestCase):
|
||||
@ -21,20 +20,11 @@ class ConfigsTestCase(unittest.TestCase):
|
||||
configs_path = pathlib.Path(configs.__path__[0])
|
||||
return configs_path
|
||||
|
||||
def get_frontend_path(self) -> pathlib.Path:
|
||||
"""Get the path of the frontend dist folder"""
|
||||
return pathlib.Path(frontend.__path__[0])
|
||||
|
||||
def test_configs_path(self):
|
||||
"""Test that the configs path is correct"""
|
||||
TEST_PATH = str(self.get_configs_path())
|
||||
assert TEST_PATH.endswith(str(osp.join("invokeai", "configs")))
|
||||
|
||||
def test_frontend_path(self):
|
||||
"""Test that the frontend path is correct"""
|
||||
FRONTEND_PATH = str(self.get_frontend_path())
|
||||
assert FRONTEND_PATH.endswith(osp.join("invokeai", "frontend", "web", "dist"))
|
||||
|
||||
def test_caution_img(self):
|
||||
"""Verify the caution image"""
|
||||
caution_img = Image.open(osp.join(image_assets.__path__[0], "caution.png"))
|
||||
|
Loading…
Reference in New Issue
Block a user