Add test to go through the editable check code path

This would have failed without the previous commit.
This commit is contained in:
Tzu-ping Chung
2018-03-21 23:24:29 +08:00
parent c8562129de
commit 49cb2b087a
+18
View File
@@ -294,6 +294,24 @@ records = "*"
c = p.pipenv('run python -c "import tablib"')
assert c.return_code == 0
@pytest.mark.cli
@pytest.mark.install
def test_install_without_dev_section(self, pypi):
with PipenvInstance(pypi=pypi) as p:
with open(p.pipfile_path, 'w') as f:
contents = """
[packages]
tablib = "*"
""".strip()
f.write(contents)
c = p.pipenv('install')
assert c.return_code == 0
assert 'tablib' in p.pipfile['packages']
assert p.pipfile.get('dev-packages', {}) == {}
assert 'tablib' in p.lockfile['default']
assert p.lockfile['develop'] == {}
c = p.pipenv('run python -c "import tablib"')
assert c.return_code == 0
@pytest.mark.run
@pytest.mark.uninstall