Skip to content

Commit

Permalink
Add test for virtualenv stability (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborbernat authored Jun 19, 2024
1 parent 192f1ef commit 81d4cf9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ optional-dependencies.testing = [
"pytest-cov>=4.1",
"pytest-mock>=3.12",
"pytest-timeout>=2.2",
"virtualenv>=20.26.2",
]
optional-dependencies.typing = [
"typing-extensions>=4.8; python_version<'3.11'",
Expand Down
12 changes: 12 additions & 0 deletions tests/test_virtualenv.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from __future__ import annotations

from typing import TYPE_CHECKING

from virtualenv import cli_run

if TYPE_CHECKING:
from pathlib import Path


def test_virtualenv(tmp_path: Path) -> None:
cli_run([str(tmp_path), "--no-pip", "--no-setuptools", "--no-periodic-update"])
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,4 @@ extras =
commands =
python -m pip list --format=columns
python -c 'import sys; print(sys.executable)'
uv_seed = true

0 comments on commit 81d4cf9

Please sign in to comment.