mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
946040f716
closes https://github.com/pypa/pipenv/issues/5540 pipenv update --outdated fail with NonExistentKey error when there are outdated packages in dev-packages category.
13 lines
528 B
Python
13 lines
528 B
Python
import pytest
|
|
|
|
@pytest.mark.parametrize("cmd_option", ["", "--dev"])
|
|
@pytest.mark.basic
|
|
@pytest.mark.update
|
|
def test_update_outdated_with_outdated_package(pipenv_instance_private_pypi, cmd_option):
|
|
with pipenv_instance_private_pypi() as p:
|
|
package_name = "six"
|
|
p.pipenv(f"install {cmd_option} {package_name}==1.11")
|
|
c = p.pipenv("update --outdated")
|
|
assert isinstance(c.exception, SystemExit)
|
|
assert c.stdout_bytes.decode("utf-8").startswith(f"Package '{package_name}' out-of-date:")
|