Commit cd920554 by Sébastien Eustace

Fix tests

parent 852ec33d
...@@ -125,7 +125,7 @@ def test_add_git_constraint(app, repo, installer): ...@@ -125,7 +125,7 @@ def test_add_git_constraint(app, repo, installer):
expected = """\ expected = """\
Updating dependencies Updating dependencies
Resolving dependencies.. Resolving dependencies
Package operations: 2 installs, 0 updates, 0 removals Package operations: 2 installs, 0 updates, 0 removals
......
...@@ -52,6 +52,14 @@ def setup(mocker, installer): ...@@ -52,6 +52,14 @@ def setup(mocker, installer):
p = mocker.patch('poetry.vcs.git.Git.rev_parse') p = mocker.patch('poetry.vcs.git.Git.rev_parse')
p.return_value = '9cf87a285a2d3fbb0b9fa621997b3acc3631ed24' p.return_value = '9cf87a285a2d3fbb0b9fa621997b3acc3631ed24'
# Patch provider progress rate to have a consistent
# dependency resolution output
p = mocker.patch(
'poetry.puzzle.provider.Provider.progress_rate',
new_callable=mocker.PropertyMock
)
p.return_value = 3600
class Application(BaseApplication): class Application(BaseApplication):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment