Skip to content

Commit

Permalink
Refactor micromamba test_info with new fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoinePrv committed May 25, 2023
1 parent f7bd852 commit 03379f0
Show file tree
Hide file tree
Showing 2 changed files with 288 additions and 320 deletions.
16 changes: 10 additions & 6 deletions micromamba/tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,16 @@ class DryRun(Enum):
MAMBA_NOT_ALLOW_NOT_ENV_PREFIX = 0
MAMBA_NOT_EXPECT_EXISTING_PREFIX = 0

if platform.system() == "Windows":
xtensor_hpp = "Library/include/xtensor/xtensor.hpp"
xsimd_hpp = "Library/include/xsimd/xsimd.hpp"
else:
xtensor_hpp = "include/xtensor/xtensor.hpp"
xsimd_hpp = "include/xsimd/xsimd.hpp"

def lib_prefix() -> Path:
"""A potential prefix used for library in Conda environments."""
if platform.system() == "Windows":
return Path("Library")
return Path("")


xtensor_hpp = lib_prefix() / "include/xtensor/xtensor.hpp"
xsimd_hpp = lib_prefix() / "include/xsimd/xsimd.hpp"


def get_umamba(cwd=os.getcwd()):
Expand Down
Loading

0 comments on commit 03379f0

Please sign in to comment.