Skip to content

Commit

Permalink
edit test
Browse files Browse the repository at this point in the history
  • Loading branch information
SandrineP committed Feb 6, 2025
1 parent ed90b5d commit d473b05
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions micromamba/tests/test_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,28 @@ def test_base_subcommand(tmp_home, tmp_root_prefix, prefix_selection, base_flag)
elif prefix_selection == "name":
infos = helpers.info("-n", "base", base_flag)
else:
infos = helpers.info()

items = ["libmamba version", "mamba version", "curl version", "libarchive version", "envs directories",
"package cache", "environment", "env location", "user config files", "populated config files",
"user config files", "virtual packages", "channels", "base environment", "platform"]
infos = helpers.info(base_flag)

items = [
"libmamba version",
"mamba version",
"curl version",
"libarchive version",
"envs directories",
"package cache",
"environment",
"env location",
"user config files",
"populated config files",
"user config files",
"virtual packages",
"channels",
"base environment",
"platform",
]
if base_flag == "--base":
print(infos)
# assert all(f"{i} :" not in infos for i in items)
# assert os.path.exists(infos)
assert all(f"{i} :" not in infos for i in items)
assert os.path.exists(infos.strip())
else:
assert all(i in infos for i in items)

0 comments on commit d473b05

Please sign in to comment.