Move parsing of requirements logic to function. (#12701)

This commit is contained in:
comfyanonymous
2026-02-28 19:21:32 -08:00
committed by GitHub
parent 48bb0bd18a
commit 17106cb124
3 changed files with 42 additions and 39 deletions

View File

@@ -49,6 +49,12 @@ def mock_provider(mock_releases):
return provider
@pytest.fixture(autouse=True)
def clear_cache():
import utils.install_util
utils.install_util.PACKAGE_VERSIONS = {}
def test_get_release(mock_provider, mock_releases):
version = "1.0.0"
release = mock_provider.get_release(version)