mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
The new spell-check test passing!
This commit is contained in:
+1
-1
@@ -1628,7 +1628,7 @@ def install(
|
||||
),
|
||||
default=True
|
||||
):
|
||||
package_names[0] = package_name
|
||||
package_names[0] = suggested_package
|
||||
|
||||
# Install all dependencies, if none was provided.
|
||||
if package_name is False:
|
||||
|
||||
@@ -128,14 +128,14 @@ class TestPipenv:
|
||||
|
||||
def test_spell_checking(self):
|
||||
with PipenvInstance() as p:
|
||||
c = p.pipenv('install django-rest-framework', block=False)
|
||||
c = p.pipenv('install flaskcors', block=False)
|
||||
c.expect('[Y/n]:')
|
||||
c.send('y')
|
||||
c.block()
|
||||
|
||||
assert c.return_code == 0
|
||||
print(p.lockfile)
|
||||
assert 'requests' in p.lockfile['djangorestframework']
|
||||
assert 'flask-cors' in p.pipfile['packages']
|
||||
assert 'flask' in p.lockfile['default']
|
||||
|
||||
def test_basic_install(self):
|
||||
with PipenvInstance() as p:
|
||||
|
||||
Reference in New Issue
Block a user