Skip to content

Commit

Permalink
Expect failure in PEP 621 mode without dynamic version requested
Browse files Browse the repository at this point in the history
  • Loading branch information
mtkennerly committed Jun 17, 2024
1 parent 33e68b4 commit 41d454b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def test_pep621_without_dynamic_version():
data = re.sub(r"dynamic = .*", "dynamic = []", data)
dummy_pyproject.write_bytes(data.encode("utf-8"))

run("poetry-dynamic-versioning", where=dummy)
run("poetry-dynamic-versioning", codes=[1], where=dummy)
assert "version =" not in dummy_pyproject.read_bytes().decode("utf-8")
assert '__version__ = "0.0.0"' in (
dummy / "project_pep621" / "__init__.py"
Expand Down

0 comments on commit 41d454b

Please sign in to comment.