Skip to content

Commit

Permalink
ci test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
telamonian committed Aug 16, 2024
1 parent 41de4c5 commit c87cb3d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/uv/test_uv.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,14 @@ def test_compile(mock_prompt_select):
reqFilesExt=[reqsDir/"x_reqs.txt", reqsDir/"y_reqs.txt"],
)

DependencyCompiler.Install_Build_Deps()
depComp.make_override()
depComp.compile_core_plus_ext()

with open(reqsDir/"requirements.compiled", "r") as known, open(temp/"requirements.compiled", "r") as test:
knownLines, testLines = known.readlines(), test.readlines()
# compare all non-commented lines in generated file vs reference file
knownLines, testLines = [
[line for line in known.readlines() if line.strip()[0]!="#"],
[line for line in test.readlines() if line.strip()[0]!="#"],
]
assert knownLines == testLines

0 comments on commit c87cb3d

Please sign in to comment.