mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Clean up test
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user