mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Add test to go through the editable check code path
This would have failed without the previous commit.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user