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
08ed8ed1
Unverified
Commit
08ed8ed1
authored
Jan 30, 2022
by
Randy Döring
Committed by
GitHub
Jan 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapt expectation to improvement in union of markers (#5126)
parent
b1f5f22c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
6 deletions
+20
-6
tests/utils/test_exporter.py
+20
-6
No files found.
tests/utils/test_exporter.py
View file @
08ed8ed1
import
sys
import
textwrap
from
pathlib
import
Path
from
typing
import
TYPE_CHECKING
...
...
@@ -1040,13 +1041,26 @@ def test_exporter_can_export_requirements_txt_with_nested_packages_and_multiple_
with
(
Path
(
tmp_dir
)
/
"requirements.txt"
)
.
open
(
encoding
=
"utf-8"
)
as
f
:
content
=
f
.
read
()
expected
=
"""
\
bar==7.8.9 ; platform_system != "Windows" or platform_system == "Windows"
baz==10.11.13 ; platform_system == "Windows"
foo==1.2.3
"""
expected
=
(
# expectation for poetry-core <= 1.1.0a6
textwrap
.
dedent
(
"""
\
bar==7.8.9 ; platform_system != "Windows" or platform_system == "Windows"
baz==10.11.13 ; platform_system == "Windows"
foo==1.2.3
"""
),
# expectation for poetry-core > 1.1.0a6
textwrap
.
dedent
(
"""
\
bar==7.8.9
baz==10.11.13 ; platform_system == "Windows"
foo==1.2.3
"""
),
)
assert
expected
==
content
assert
content
in
expected
def
test_exporter_can_export_requirements_txt_with_git_packages_and_markers
(
...
...
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