Address test failures with the new requirementslib changes.

This commit is contained in:
Matt Davis
2022-09-10 21:09:35 -04:00
parent d97f75a325
commit 9e80997b8e
2 changed files with 8 additions and 3 deletions
+7 -2
View File
@@ -155,7 +155,7 @@ def test_resolve_skip_unmatched_requirements(pipenv_instance_pypi):
c = p.pipenv("lock")
assert c.returncode == 0
assert (
"Could not find a version of missing-package; "
"Could not find a version of missing-package ; "
"os_name == 'FakeOS' that matches your environment"
) in c.stderr
@@ -547,14 +547,19 @@ six = "*"
@pytest.mark.lock
@pytest.mark.install
@pytest.mark.skip
# We get warning: Creating a LegacyVersion has been deprecated and will be removed in the next major release
# https://github.com/pypa/pip/issues/9250
def test_lock_no_warnings(pipenv_instance_pypi, recwarn):
with pipenv_instance_pypi(chdir=True) as p:
c = p.pipenv("install six")
assert c.returncode == 0
print(recwarn)
print(vars(recwarn))
print(recwarn[0])
assert len(recwarn) == 0
@pytest.mark.vcs
@pytest.mark.lock
def test_vcs_lock_respects_top_level_pins(pipenv_instance_private_pypi):
+1 -1
View File
@@ -121,7 +121,7 @@ def test_requirements_markers_get_included(pipenv_instance_pypi):
c = p.pipenv('requirements')
assert c.returncode == 0
assert f'{package}{version}; {markers}' in c.stdout
assert f'{package}{version} ; {markers}' in c.stdout
@pytest.mark.requirements