uncommented test_pipenv_check and test_spell_check

Signed-off-by: Erin O'Connell <erinocon5@gmail.com>
This commit is contained in:
Erin O'Connell
2017-09-23 00:47:45 -06:00
parent 8787532b70
commit ed58f25b5d
+13 -12
View File
@@ -93,10 +93,10 @@ class TestPipenv:
assert 'requests' in p.pipenv('graph').out
assert 'requests' in p.pipenv('graph --json').out
# def test_pipenv_check(self):
# with PipenvInstance() as p:
# p.pipenv('install requests==1.0.0')
# assert 'requests' in p.pipenv('check').out
def test_pipenv_check(self):
with PipenvInstance() as p:
p.pipenv('install requests==1.0.0')
assert 'requests' in p.pipenv('check').out
def test_venv_envs(self):
with PipenvInstance() as p:
@@ -126,15 +126,16 @@ class TestPipenv:
assert 'urllib3' in p.lockfile['default']
assert 'certifi' in p.lockfile['default']
# def test_spell_checking(self):
# with PipenvInstance() as p:
# c = p.pipenv('install django-rest-framework', block=False)
# c.expect('?')
# c.send('y')
# c.block()
def test_spell_checking(self):
with PipenvInstance() as p:
c = p.pipenv('install django-rest-framework', block=False)
c.expect('[Y/n]:')
c.send('y')
c.block()
# assert c.return_code == 0
# assert 'requests' in p.pipfile['djangorestframework']
assert c.return_code == 0
print(p.lockfile)
assert 'requests' in p.lockfile['djangorestframework']
def test_basic_install(self):
with PipenvInstance() as p: