mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Address test failures with the new requirementslib changes.
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user