Skip to content

Commit

Permalink
fix test that was never run because of name collision
Browse files Browse the repository at this point in the history
  • Loading branch information
matteius authored and oz123 committed Oct 22, 2024
1 parent 1663b3b commit 95ab685
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/integration/test_import_requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def test_auth_with_pw_are_variables_passed_to_pipfile(
mock_find_package_name_from_directory, pipenv_instance_pypi
):
mock_find_package_name_from_directory.return_value = "myproject"
with (pipenv_instance_pypi() as p):
with pipenv_instance_pypi() as p:
p.pipenv("run shell")
project = Project()
requirements_file = tempfile.NamedTemporaryFile(mode="w+", delete=False)
Expand Down
12 changes: 6 additions & 6 deletions tests/unit/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,23 +113,23 @@ def test_convert_deps_to_pip_extras_no_version():
{
"FooProject": {
"version": "==1.2",
"hash": "sha256:2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824",
"hashes": ["sha256:2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824"],
}
},
{
"FooProject": "FooProject==1.2 --hash=sha256:2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824"
"FooProject": "FooProject==1.2 --hash=sha256:2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824"
},
),
(
{
"FooProject": {
"version": "==1.2",
"extras": ["stuff"],
"hash": "sha256:2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824",
"hashes": ["sha256:2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824"],
}
},
{
"FooProject": "FooProject[stuff]==1.2 --hash=sha256:2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824"
"FooProject": "FooProject[stuff]==1.2 --hash=sha256:2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824"
},
),
(
Expand All @@ -141,13 +141,13 @@ def test_convert_deps_to_pip_extras_no_version():
}
},
{
"uvicorn": "git+https://github.com/encode/uvicorn.git@master#egg=uvicorn[standard]"
"uvicorn": "uvicorn[standard]@ git+https://github.com/encode/uvicorn.git@master"
},
),
],
)
def test_convert_deps_to_pip_one_way(deps, expected):
assert dependencies.convert_deps_to_pip(deps) == [expected.lower()]
assert dependencies.convert_deps_to_pip(deps) == expected


@pytest.mark.utils
Expand Down

0 comments on commit 95ab685

Please sign in to comment.