Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-poetry
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
python-poetry
Commits
1ec8be3d
Unverified
Commit
1ec8be3d
authored
Oct 30, 2022
by
Randy Döring
Committed by
GitHub
Oct 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: make tests forward compatible (space before semicolon in PEP 508 requirements) (#6914)
required for python-poetry/poetry-core#510
parent
2a70d67d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
tests/inspection/test_info.py
+14
-3
No files found.
tests/inspection/test_info.py
View file @
1ec8be3d
...
@@ -101,12 +101,23 @@ def demo_check_info(info: PackageInfo, requires_dist: set[str] = None) -> None:
...
@@ -101,12 +101,23 @@ def demo_check_info(info: PackageInfo, requires_dist: set[str] = None) -> None:
assert
info
.
version
==
"0.1.0"
assert
info
.
version
==
"0.1.0"
assert
info
.
requires_dist
assert
info
.
requires_dist
requires_dist
=
requires_dist
or
{
if
requires_dist
:
assert
set
(
info
.
requires_dist
)
==
requires_dist
else
:
assert
set
(
info
.
requires_dist
)
in
(
# before https://github.com/python-poetry/poetry-core/pull/510
{
'cleo; extra == "foo"'
,
'cleo; extra == "foo"'
,
"pendulum (>=1.4.4)"
,
"pendulum (>=1.4.4)"
,
'tomlkit; extra == "bar"'
,
'tomlkit; extra == "bar"'
,
}
},
assert
set
(
info
.
requires_dist
)
==
requires_dist
# after https://github.com/python-poetry/poetry-core/pull/510
{
'cleo ; extra == "foo"'
,
"pendulum (>=1.4.4)"
,
'tomlkit ; extra == "bar"'
,
},
)
def
test_info_from_sdist
(
demo_sdist
:
Path
):
def
test_info_from_sdist
(
demo_sdist
:
Path
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment