mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
@@ -142,12 +142,12 @@ def test_pipenv_graph_reverse(PipenvInstance):
|
||||
@flaky
|
||||
def test_pipenv_check(PipenvInstance):
|
||||
with PipenvInstance() as p:
|
||||
c = p.pipenv('install requests==1.0.0')
|
||||
c = p.pipenv('install pyyaml')
|
||||
assert c.returncode == 0
|
||||
c = p.pipenv('check')
|
||||
assert c.returncode != 0
|
||||
assert 'requests' in c.stdout
|
||||
c = p.pipenv('uninstall requests')
|
||||
assert 'pyyaml' in c.stdout
|
||||
c = p.pipenv('uninstall pyyaml')
|
||||
assert c.returncode == 0
|
||||
c = p.pipenv('install six')
|
||||
assert c.returncode == 0
|
||||
|
||||
@@ -401,6 +401,7 @@ fake-package = "*"
|
||||
@pytest.mark.lock
|
||||
@pytest.mark.install
|
||||
@pytest.mark.skip_windows
|
||||
@pytest.mark.skipif(sys.version_info >= (3, 9), reason="old setuptools doesn't work")
|
||||
@pytest.mark.needs_internet
|
||||
def test_outdated_setuptools_with_pep517_legacy_build_meta_is_updated(PipenvInstance):
|
||||
"""
|
||||
@@ -429,6 +430,7 @@ def test_outdated_setuptools_with_pep517_legacy_build_meta_is_updated(PipenvInst
|
||||
@pytest.mark.lock
|
||||
@pytest.mark.install
|
||||
@pytest.mark.skip_windows
|
||||
@pytest.mark.skipif(sys.version_info >= (3, 9), reason="old setuptools doesn't work")
|
||||
@pytest.mark.needs_internet
|
||||
def test_outdated_setuptools_with_pep517_cython_import_in_setuppy(PipenvInstance):
|
||||
"""
|
||||
|
||||
@@ -32,7 +32,7 @@ def test_uninstall_requests(PipenvInstance):
|
||||
@pytest.mark.uninstall
|
||||
def test_uninstall_django(PipenvInstance):
|
||||
with PipenvInstance() as p:
|
||||
c = p.pipenv("install Django==1.11.13")
|
||||
c = p.pipenv("install Django")
|
||||
assert c.returncode == 0
|
||||
assert "django" in p.pipfile["packages"]
|
||||
assert "django" in p.lockfile["default"]
|
||||
@@ -61,7 +61,7 @@ def test_mirror_uninstall(PipenvInstance):
|
||||
)
|
||||
assert "pypi.org" not in mirror_url
|
||||
|
||||
c = p.pipenv(f"install Django==1.11.13 --pypi-mirror {mirror_url}")
|
||||
c = p.pipenv(f"install Django --pypi-mirror {mirror_url}")
|
||||
assert c.returncode == 0
|
||||
assert "django" in p.pipfile["packages"]
|
||||
assert "django" in p.lockfile["default"]
|
||||
|
||||
Reference in New Issue
Block a user