From c76b95db34b8aecae63636695b17961736a7e8d9 Mon Sep 17 00:00:00 2001 From: Dan Ryan Date: Fri, 22 Jun 2018 02:04:37 -0400 Subject: [PATCH] Add test for `install -e` Signed-off-by: Dan Ryan --- news/2388.feature | 1 + tests/integration/test_install_basic.py | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 news/2388.feature diff --git a/news/2388.feature b/news/2388.feature new file mode 100644 index 00000000..2286baf7 --- /dev/null +++ b/news/2388.feature @@ -0,0 +1 @@ +Massive internal improvements to requirements parsing codebase, resolver, and error messaging. diff --git a/tests/integration/test_install_basic.py b/tests/integration/test_install_basic.py index bd0b96c3..a6798aa3 100644 --- a/tests/integration/test_install_basic.py +++ b/tests/integration/test_install_basic.py @@ -299,3 +299,13 @@ name = 'mockpi' assert c.return_code == 0 assert p.pipfile['source'][0]['url'] == '${PYPI_URL}/simple' assert p.lockfile['_meta']['sources'][0]['url'] == '${PYPI_URL}/simple' + + +@pytest.mark.editable +@pytest.mark.badparameter +@pytest.mark.install +def test_editable_no_args(PipenvInstance): + with PipenvInstance() as p: + c = p.pipenv('install -e') + assert c.return_code != 0 + assert 'Please provide path to editable package' in c.err