Skip to content

Commit

Permalink
trying to fix test_tutorials, testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ZergLev committed Nov 29, 2024
1 parent 51f44e2 commit bcf0a8e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/tutorials/test_tutorials.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ def check_tutorial_dependencies(venv: "VirtualEnv", tutorial_source_code: str):

versions_dict = InstallationCell.versions()
for deps in re.findall(InstallationCell.pattern, tutorial_source_code):
cmd = f"python -m pip install {deps}".replace("=={chatsky}", "")
cmd = cmd.replace("chatsky", ".")
cmd = cmd.format(**versions_dict)
venv.run(
(f"python -m pip install {deps}".replace("=={chatsky}", "").replace("chatsky", ".")).format(
**versions_dict
),
cmd,
check_rc=True,
cd=os.getcwd(),
)
Expand Down

0 comments on commit bcf0a8e

Please sign in to comment.