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 15, 2024
1 parent 757729b commit 3a5afe3
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 = "[email protected]"
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 3a5afe3

Please sign in to comment.