fix(tests): fix test_path

- assets path has changed
This commit is contained in:
psychedelicious 2023-07-26 18:48:43 +10:00
parent 30c3b7a6fc
commit db05445103

View File

@ -9,7 +9,7 @@ from PIL import Image
import invokeai.frontend.web.dist as frontend
import invokeai.configs as configs
import invokeai.assets.web as assets_web
import invokeai.app.assets.images as image_assets
class ConfigsTestCase(unittest.TestCase):
"""Test the configuration related imports and objects"""
@ -35,7 +35,7 @@ class ConfigsTestCase(unittest.TestCase):
def test_caution_img(self):
"""Verify the caution image"""
caution_img = Image.open(osp.join(assets_web.__path__[0], "caution.png"))
caution_img = Image.open(osp.join(image_assets.__path__[0], "caution.png"))
assert caution_img.width == int(500)
assert caution_img.height == int(441)
assert caution_img.format == str("PNG")