From 95a75e18d66785e8ac543e127ac46746c4b75003 Mon Sep 17 00:00:00 2001 From: huchenlei Date: Wed, 3 Jul 2024 13:45:45 -0400 Subject: [PATCH] Add test on non-exist version number --- tests-unit/comfy/frontend_manager_test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests-unit/comfy/frontend_manager_test.py b/tests-unit/comfy/frontend_manager_test.py index 25e6ffd3710..7c0b737af95 100644 --- a/tests-unit/comfy/frontend_manager_test.py +++ b/tests-unit/comfy/frontend_manager_test.py @@ -100,6 +100,11 @@ def test_init_frontend_provider_latest(mock_provider, mock_releases): mock_releases[1], destination_path=frontend_path ) +def test_init_frontend_invalid_version(): + version_string = "test@1.100.99" + with pytest.raises(ValueError): + FrontendManager.init_frontend(version_string) + def test_init_frontend_invalid_provider(): version_string = "invalid@latest"