Skip to content

Commit

Permalink
Sharpen asserts in an attempt to debug failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
maresb committed Oct 20, 2024
1 parent 94d1f5e commit d4820b1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/cli/env/test_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -1561,12 +1561,10 @@ def update(self, metadata):
assert len(storage_path.name) == 8

env_dirs = list(storage_path.iterdir())
assert len(env_dirs) == 2
assert [d.name for d in env_dirs] == ['hatch-build', 'test']

env_path = env_dirs[1]

assert env_path.name == 'test'

with UVVirtualEnv(env_path, platform):
output = platform.run_command([uv_on_path, 'pip', 'freeze'], check=True, capture_output=True).stdout.decode(
'utf-8'
Expand Down

0 comments on commit d4820b1

Please sign in to comment.