Skip to content

Commit

Permalink
Fix test on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
matteius committed Sep 29, 2024
1 parent d9e6dfe commit cbcd06c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/integration/test_install_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@pytest.mark.install
def test_basic_install(pipenv_instance_private_pypi):
with pipenv_instance_private_pypi() as p:
c = p.pipenv("install six")
c = p.pipenv("install six -v")
assert c.returncode == 0
assert "six" in p.pipfile["packages"]
assert "six" in p.lockfile["default"]
Expand Down
5 changes: 2 additions & 3 deletions tests/integration/test_install_vcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ def test_install_github_vcs_with_credentials(pipenv_instance_pypi, use_credentia
else:
url = "git+https://${GIT_REPO}@2.16"

# Use single quotes to prevent shell expansion
c = p.pipenv(f"install '{url}'")
c = p.pipenv(f"install {url} -v")
assert c.returncode == 0, f"Install failed with error: {c.stderr}"

assert "dataclass-factory" in p.pipfile["packages"]
Expand All @@ -40,5 +39,5 @@ def test_install_github_vcs_with_credentials(pipenv_instance_pypi, use_credentia
assert "${GIT_PASSWORD}" in lockfile_content['default']['dataclass-factory']['git']

# Verify that the package is installed and usable
c = p.pipenv("run python -c 'import dataclass_factory'")
c = p.pipenv("run python -c \"import dataclass_factory\"")
assert c.returncode == 0, f"Failed to import library: {c.stderr}"

0 comments on commit cbcd06c

Please sign in to comment.