From fedda7f2c4ca9124e0843a79e84976b3e95e28da Mon Sep 17 00:00:00 2001 From: Dan Ryan Date: Fri, 31 Aug 2018 01:57:44 -0400 Subject: [PATCH] Clean up test --- tests/integration/test_install_twists.py | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/tests/integration/test_install_twists.py b/tests/integration/test_install_twists.py index c9dded43..055c39b2 100644 --- a/tests/integration/test_install_twists.py +++ b/tests/integration/test_install_twists.py @@ -13,15 +13,10 @@ from flaky import flaky @pytest.mark.extras @pytest.mark.install @pytest.mark.local -@pytest.mark.parametrize( - "line, pipfile", - [["-e .[dev]", {"testpipenv": {"path": ".", "editable": True, "extras": ["dev"]}}]], -) -def test_local_extras_install(PipenvInstance, pypi, line, pipfile): +def test_local_extras_install(PipenvInstance, pypi): """Ensure -e .[extras] installs. """ with PipenvInstance(pypi=pypi, chdir=True) as p: - project = Project() setup_py = os.path.join(p.path, "setup.py") with open(setup_py, "w") as fh: contents = """ @@ -40,7 +35,17 @@ zip_safe=False ) """.strip() fh.write(contents) - project.write_toml({"packages": pipfile, "dev-packages": {}}) + line = "-e .[dev]" + # pipfile = {"testpipenv": {"path": ".", "editable": True, "extras": ["dev"]}} + project = Project() + with open(os.path.join(p.path, 'Pipfile'), 'w') as fh: + fh.write(""" +[packages] +testpipenv = {path = ".", editable = true, extras = ["dev"]} + +[dev-packages] + """.strip()) + # project.write_toml({"packages": pipfile, "dev-packages": {}}) c = p.pipenv("install") assert c.return_code == 0 assert "testpipenv" in p.lockfile["default"]