Skip to content

Commit ad2809b

Browse files
committed
Add failing test for poetry.lock
Check that pinned requirements are honored when poetry.lock is present. Request an outdated version of marshmallow in poetry.lock (3.0.0). Check that the outdated version is installed, rather than a newer version also satisfying the version constraint in pyproject.toml (^3.0.0).
1 parent 613b787 commit ad2809b

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

test/fixtures/poetry-lock/poetry.lock

Lines changed: 11 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/fixtures/poetry-lock/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ authors = ["Your Name <[email protected]>"]
66

77
[tool.poetry.dependencies]
88
python = "^3.6"
9-
attrs = "^19.1.0"
9+
marshmallow = "^3.0.0"
1010

1111
[tool.poetry.dev-dependencies]
1212

test/run-features

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ testPoetry() {
8282

8383
testPoetryLock() {
8484
compile "poetry-lock"
85+
assertCaptured "marshmallow==3.0.0"
8586
assertCapturedSuccess
8687
}
8788

0 commit comments

Comments
 (0)