Skip to content

Commit

Permalink
tests: verify env is 'uv'
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii committed Feb 20, 2024
1 parent 80ab56d commit 5000cf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion nox/virtualenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def _check_reused_environment_type(self) -> bool:
parts = (x.partition("=") for x in fp if "=" in x)
config = {k.strip(): v.strip() for k, _, v in parts}
if "gourgeist" in config:
old_env = "uv"
old_env = "uv" # pragma: <3.8 no cover
elif "virtualenv" in config:
old_env = "virtualenv"
else:
Expand Down
1 change: 1 addition & 0 deletions tests/test_virtualenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ def test_uv_creation(make_one):
assert venv.venv_backend == "uv"

venv.create()
assert venv._check_reused_environment_type()


def test_constructor_defaults(make_one):
Expand Down

0 comments on commit 5000cf8

Please sign in to comment.