Skip to content

Commit

Permalink
Fix test_shell.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoinePrv committed Mar 11, 2024
1 parent 70c14e9 commit bfed489
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions micromamba/tests/test_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ def test_hook(tmp_home, tmp_root_prefix, shell_type):
assert not any(li.startswith("## EXPORTS ##") for li in lines)
assert lines[2].startswith("## AFTER PARAM ####")
elif shell_type in ("zsh", "bash", "posix"):
assert res.count(mamba_exe_posix) == 3
assert res.count(mamba_exe_posix) == 5
elif shell_type == "xonsh":
assert res.count(mamba_exe_posix) == 8
elif shell_type == "fish":
assert res.count(mamba_exe_posix) == 5
elif shell_type == "cmd.exe":
assert res == ""
elif shell_type == "tcsh":
assert res.count(mamba_exe_posix) == 3
assert res.count(mamba_exe_posix) == 5
elif shell_type == "nu":
# insert dummy test, as the nu scripts contains
# no mention of mamba_exe; path is added in config.nu
Expand Down

0 comments on commit bfed489

Please sign in to comment.