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
f0487f6c
Commit
f0487f6c
authored
Jul 02, 2021
by
Matthieu Devlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: fix tests for for older versions of python
parent
4275a551
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
tests/packages/test_locker.py
+4
-2
No files found.
tests/packages/test_locker.py
View file @
f0487f6c
...
@@ -637,6 +637,8 @@ lib-b = []
...
@@ -637,6 +637,8 @@ lib-b = []
create_dependency_patch
.
assert_called_once_with
(
create_dependency_patch
.
assert_called_once_with
(
"lib-b"
,
{
"develop"
:
True
,
"path"
:
"../libB"
},
root_dir
=
mocker
.
ANY
"lib-b"
,
{
"develop"
:
True
,
"path"
:
"../libB"
},
root_dir
=
mocker
.
ANY
)
)
root_dir
=
create_dependency_patch
.
call_args
.
kwargs
[
"root_dir"
]
call_kwargs
=
create_dependency_patch
.
call_args
[
1
]
root_dir
=
call_kwargs
[
"root_dir"
]
assert
root_dir
.
match
(
"*/lib/libA"
)
assert
root_dir
.
match
(
"*/lib/libA"
)
assert
root_dir
.
is_relative_to
(
locker
.
lock
.
path
.
parent
.
resolve
())
# relative_to raises an exception if not relative - is_relative_to comes in py3.9
assert
root_dir
.
relative_to
(
locker
.
lock
.
path
.
parent
.
resolve
())
is
not
None
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