Skip to content

Commit

Permalink
fix expected path
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Dec 19, 2023
1 parent 5957eb3 commit ae80615
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,16 +350,15 @@ def test_example_miniforge(tmp_path, request):
for key in ("ProgramData", "AppData"):
start_menu_dir = Path(
os.environ[key],
"Microsoft/Windows/Start Menu/Programs",
install_dir.name,
"Microsoft/Windows/Start Menu/Programs/Miniforge3",
)
if start_menu_dir.is_dir():
assert (start_menu_dir / f"{install_dir.name} Prompt.lnk").is_file()
assert (start_menu_dir / "Miniforge Prompt.lnk").is_file()
break
else:
raise AssertionError("Could not find Start Menu folder for miniforge")
_run_uninstaller_exe(install_dir)
assert not (start_menu_dir / f"{install_dir.name} Prompt.lnk").is_file()
assert not (start_menu_dir / "Miniforge Prompt.lnk").is_file()


def test_example_noconda(tmp_path, request):
Expand Down

0 comments on commit ae80615

Please sign in to comment.