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
6d01f074
Commit
6d01f074
authored
Jun 06, 2022
by
Randy Döring
Committed by
Bjorn Neergaard
Jun 06, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test(solver): make test forward compatible to improved string representation of dependencies
parent
46971b9d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
tests/mixology/version_solver/test_unsolvable.py
+6
-6
No files found.
tests/mixology/version_solver/test_unsolvable.py
View file @
6d01f074
...
...
@@ -99,14 +99,14 @@ def test_disjoint_root_constraints_path_dependencies(
provider
.
set_package_python_versions
(
"^3.7"
)
fixtures
=
Path
(
__file__
)
.
parent
.
parent
.
parent
/
"fixtures"
project_dir
=
fixtures
.
joinpath
(
"with_conditional_path_deps"
)
path1
=
project_dir
/
"demo_one"
root
.
add_dependency
(
Factory
.
create_dependency
(
"demo"
,
{
"path"
:
path1
})
)
path2
=
project_dir
/
"demo_two"
root
.
add_dependency
(
Factory
.
create_dependency
(
"demo"
,
{
"path"
:
path2
})
)
dependency1
=
Factory
.
create_dependency
(
"demo"
,
{
"path"
:
project_dir
/
"demo_one"
})
root
.
add_dependency
(
dependency1
)
dependency2
=
Factory
.
create_dependency
(
"demo"
,
{
"path"
:
project_dir
/
"demo_two"
})
root
.
add_dependency
(
dependency2
)
error
=
(
f
"Because myapp depends on both
demo (1.2.3 {path1.as_posix()})
"
f
"and
demo (1.2.3 {path2.as_posix()})
, version solving failed."
f
"Because myapp depends on both
{str(dependency1).replace('*', '1.2.3')}
"
f
"and
{str(dependency2).replace('*', '1.2.3')}
, version solving failed."
)
check_solver_result
(
root
,
provider
,
error
=
error
)
...
...
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