Skip to content

Commit

Permalink
Tweak --optional usage
Browse files Browse the repository at this point in the history
  • Loading branch information
mtkennerly committed Sep 10, 2024
1 parent 8535154 commit da8e1d7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,7 @@ def test_invalid_config_for_vcs():
def test_keep_pyproject_modifications():
package = "cachy"
# Using --optional to avoid actually installing the package
if "USE_PEP621" in os.environ:
run(f"poetry add --optional main {package}", where=DUMMY)
else:
run(f"poetry add --optional {package}", where=DUMMY)
run(f"poetry add --optional {package}", where=DUMMY)
# Make sure pyproject.toml contains the new package dependency
data = DUMMY_PYPROJECT.read_bytes().decode("utf-8")
assert package in data
Expand Down

0 comments on commit da8e1d7

Please sign in to comment.