Skip to content

Commit

Permalink
Make independent long path test
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoinePrv committed Aug 23, 2023
1 parent 6e4d91e commit 7a9bb95
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion micromamba/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
6 changes: 6 additions & 0 deletions micromamba/tests/test_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 7a9bb95

Please sign in to comment.