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
355adc22
Commit
355adc22
authored
Sep 18, 2022
by
Bjorn Neergaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: fix tests for new lock file header
parent
a06381cc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
tests/packages/test_locker.py
+15
-7
No files found.
tests/packages/test_locker.py
View file @
355adc22
...
...
@@ -846,7 +846,8 @@ def test_locker_dumps_dependency_information_correctly(
with
locker
.
lock
.
open
(
encoding
=
"utf-8"
)
as
f
:
content
=
f
.
read
()
expected
=
f
"""# {GENERATED_COMMENT}
expected
=
f
"""
\
# {GENERATED_COMMENT}
[[package]]
name = "A"
...
...
@@ -870,7 +871,7 @@ content-hash = "115cf985d932e9bf5f540555bbdd75decbb62cac81e399375fc19f6277f8c1d8
[metadata.files]
A = []
"""
"""
# noqa: E800
assert
content
==
expected
...
...
@@ -891,7 +892,9 @@ def test_locker_dumps_subdir(locker: Locker, root: ProjectPackage) -> None:
with
locker
.
lock
.
open
(
encoding
=
"utf-8"
)
as
f
:
content
=
f
.
read
()
expected
=
"""
\
expected
=
f
"""
\
# {GENERATED_COMMENT}
[[package]]
name = "git-package-subdir"
version = "1.2.3"
...
...
@@ -915,7 +918,7 @@ content-hash = "115cf985d932e9bf5f540555bbdd75decbb62cac81e399375fc19f6277f8c1d8
[metadata.files]
git-package-subdir = []
"""
"""
# noqa: E800
assert
content
==
expected
...
...
@@ -941,7 +944,10 @@ def test_locker_dumps_dependency_extras_in_correct_order(
with
locker
.
lock
.
open
(
encoding
=
"utf-8"
)
as
f
:
content
=
f
.
read
()
expected
=
"""[[package]]
expected
=
f
"""
\
# {GENERATED_COMMENT}
[[package]]
name = "A"
version = "1.0.0"
description = ""
...
...
@@ -960,7 +966,7 @@ content-hash = "115cf985d932e9bf5f540555bbdd75decbb62cac81e399375fc19f6277f8c1d8
[metadata.files]
A = []
"""
"""
# noqa: E800
assert
content
==
expected
...
...
@@ -1111,6 +1117,8 @@ def test_lock_file_resolves_file_url_symlinks(root: ProjectPackage):
content
=
f
.
read
()
expected
=
f
"""
\
# {GENERATED_COMMENT}
[[package]]
name = "local-package"
version = "1.2.3"
...
...
@@ -1139,6 +1147,6 @@ content-hash = "115cf985d932e9bf5f540555bbdd75decbb62cac81e399375fc19f6277f8c1d8
[metadata.files]
local-package = []
"""
"""
# noqa: E800
assert
content
==
expected
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