Skip to content

Commit

Permalink
fixing test_tutorials for the case where there aren't any chatsky dep…
Browse files Browse the repository at this point in the history
…endencies, testing
  • Loading branch information
ZergLev committed Nov 29, 2024
1 parent 940222e commit 05083e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/tutorials/test_tutorials.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def check_tutorial_dependencies(venv: "VirtualEnv", tutorial_source_code: str):
versions_dict = InstallationCell.versions()
for deps in re.findall(InstallationCell.pattern, tutorial_source_code):
venv.run(
re.sub(r"chatsky\[(.*)\]==\{chatsky\}", r".[\1]", f"python -m pip install {deps}").format(**versions_dict),
f"python -m pip install {deps}".replace('=={chatsky}', '').replace('chatsky', '.').format(**versions_dict),
check_rc=True,
cd=os.getcwd(),
)
Expand Down

0 comments on commit 05083e4

Please sign in to comment.