Skip to content

Commit

Permalink
started adding tests for code in uv.py module
Browse files Browse the repository at this point in the history
  • Loading branch information
telamonian committed Aug 2, 2024
1 parent 5baac22 commit a7866ad
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/uv/mock_requirements/core_reqs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tqdm==4.66.4
3 changes: 3 additions & 0 deletions tests/uv/mock_requirements/x_reqs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
numpy>=2.0.1
sympy<=1.10.1
tqdm==1.0
3 changes: 3 additions & 0 deletions tests/uv/mock_requirements/y_reqs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
numpy<=1.5.0
sympy>=1.13.1
tqdm==2.0.0
14 changes: 14 additions & 0 deletions tests/uv/test_uv.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from pathlib import Path

from comfy_cli.uv import DependencyCompiler

testsDir = Path(__file__).parent.resolve()
temp = testsDir / "temp"
temp.mkdir(exist_ok=True)
here = Path(__file__).resolve()

depComp = DependencyCompiler(
cwd=temp,
reqFilesCore=[here / "mock_requirements/core_reqs.txt"],
reqFilesExt=[here / "mock_requirements/x_reqs.txt", here / "mock_requirements/y_reqs.txt"],
)

0 comments on commit a7866ad

Please sign in to comment.