From 7a9bb954c0b765717137e16231005b3cb338eac5 Mon Sep 17 00:00:00 2001 From: AntoinePrv Date: Wed, 23 Aug 2023 14:46:28 +0200 Subject: [PATCH] Make independent long path test --- micromamba/tests/conftest.py | 2 +- micromamba/tests/test_create.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/micromamba/tests/conftest.py b/micromamba/tests/conftest.py index 2f275c81b9..8bce713760 100644 --- a/micromamba/tests/conftest.py +++ b/micromamba/tests/conftest.py @@ -154,7 +154,7 @@ def tmp_root_prefix( # os.environ restored by tmp_clean_env and tmp_environ -@pytest.fixture(params=[helpers.random_string, "long_prefix_" * 20]) +@pytest.fixture(params=[helpers.random_string]) def tmp_env_name(request) -> str: """Return the explicit or implicit parametrization.""" if callable(request.param): diff --git a/micromamba/tests/test_create.py b/micromamba/tests/test_create.py index cf8c95d4dc..f5d972acf9 100644 --- a/micromamba/tests/test_create.py +++ b/micromamba/tests/test_create.py @@ -887,3 +887,9 @@ def create_repo(path: Path) -> str: if pre_commit_log.exists(): print(pre_commit_log.read_text()) raise + + +def test_long_path_support(tmp_home, tmp_root_prefix): + """Create an environment with a long name.""" + res = helpers.create("-n", "long_prefix_" * 20, "--json") + assert res["success"]