Skip to content

Commit 57b7f8c

Browse files
committed
Address CR issues
1 parent a320010 commit 57b7f8c

File tree

2 files changed

+7
-15
lines changed

2 files changed

+7
-15
lines changed

tests/console/commands/test_check.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -315,16 +315,5 @@ def test_check_does_not_error_on_pypi_reference(
315315
tester = command_tester_factory("check", poetry=poetry_with_pypi_reference)
316316
status_code = tester.execute("")
317317

318-
# Warnings about deprecated syntax are expected
319-
assert tester.io.fetch_error() == (
320-
"Warning: [tool.poetry.name] is deprecated. Use [project.name] instead.\n"
321-
"Warning: [tool.poetry.version] is set but 'version' is not in [project.dynamic]."
322-
" If it is static use [project.version]. If it is dynamic, add 'version' to"
323-
" [project.dynamic].\nIf you want to set the version dynamically via `poetry build"
324-
" --local-version` or you are using a plugin, which sets the version dynamically,"
325-
" you should define the version in [tool.poetry] and add 'version' to"
326-
" [project.dynamic].\nWarning: [tool.poetry.description] is deprecated."
327-
" Use [project.description] instead.\nWarning: [tool.poetry.authors] is"
328-
" deprecated. Use [project.authors] instead.\n"
329-
)
330-
assert status_code == 1
318+
assert tester.io.fetch_output() == "All set!\n"
319+
assert status_code == 0

tests/fixtures/pypi_reference/pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
[tool.poetry]
1+
[project]
22
name = "foobar"
33
version = "0.1.0"
44
description = ""
5-
authors = ["Poetry Developer <[email protected]>"]
5+
authors = [
6+
{ name = "Poetry Developer", email = "<[email protected]>" }
7+
]
8+
dynamic = ["dependencies", "requires-python"]
69

710
[tool.poetry.dependencies]
811
python = "^3.8"

0 commit comments

Comments
 (0)