Skip to content

Commit 0422f56

Browse files
committed
Add tests for pyproject.toml-style projects using poetry
Add two test cases for projects using poetry as the build backend: - testPoetry: project without dependencies - testPoetryLock: project with dependencies, using a poetry.lock file
1 parent d20ddf8 commit 0422f56

File tree

6 files changed

+58
-0
lines changed

6 files changed

+58
-0
lines changed

test/fixtures/poetry-lock/foobar.py

Whitespace-only changes.

test/fixtures/poetry-lock/poetry.lock

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[tool.poetry]
2+
name = "foobar"
3+
version = "0.1.0"
4+
description = ""
5+
authors = ["Your Name <[email protected]>"]
6+
7+
[tool.poetry.dependencies]
8+
python = "^3.6"
9+
attrs = "^19.1.0"
10+
11+
[tool.poetry.dev-dependencies]
12+
13+
[build-system]
14+
requires = ["poetry>=0.12"]
15+
build-backend = "poetry.masonry.api"

test/fixtures/poetry/foobar.py

Whitespace-only changes.

test/fixtures/poetry/pyproject.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[tool.poetry]
2+
name = "foobar"
3+
version = "0.1.0"
4+
description = ""
5+
authors = ["Your Name <[email protected]>"]
6+
7+
[tool.poetry.dependencies]
8+
python = "^3.6"
9+
10+
[tool.poetry.dev-dependencies]
11+
12+
[build-system]
13+
requires = ["poetry>=0.12"]
14+
build-backend = "poetry.masonry.api"

test/run-features

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,16 @@ testPipenvFullVersion() {
7070
assertCapturedSuccess
7171
}
7272

73+
testPoetry() {
74+
compile "poetry"
75+
assertCapturedSuccess
76+
}
77+
78+
testPoetryLock() {
79+
compile "poetry-lock"
80+
assertCapturedSuccess
81+
}
82+
7383
testNoRequirements() {
7484
compile "no-requirements"
7585
assertCapturedError

0 commit comments

Comments
 (0)