Skip to content

Commit

Permalink
Add test on non-exist version number
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei committed Jul 3, 2024
1 parent 8f25e25 commit 95a75e1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests-unit/comfy/frontend_manager_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 95a75e1

Please sign in to comment.