From 49cb2b087a6963cb2e4124ce6b517dcbb497c0a7 Mon Sep 17 00:00:00 2001 From: Tzu-ping Chung Date: Wed, 21 Mar 2018 23:24:29 +0800 Subject: [PATCH] Add test to go through the editable check code path This would have failed without the previous commit. --- tests/test_pipenv.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/test_pipenv.py b/tests/test_pipenv.py index 110bd68e..3d463bd0 100644 --- a/tests/test_pipenv.py +++ b/tests/test_pipenv.py @@ -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