Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
adriangb committed Oct 29, 2022
1 parent 470798e commit dcc0f2c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/poetry/installation/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,7 @@ def _do_refresh(self) -> int:
)

use_latest = [
p.name for p in locked_repository.packages
if p.source_type == "directory"
p.name for p in locked_repository.packages if p.source_type == "directory"
]

with solver.provider.use_source_root(
Expand Down
7 changes: 5 additions & 2 deletions tests/console/commands/test_lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,15 @@ def test_lock_no_update_path_dependencies(
repo.add_package(get_package("sampleproject", "1.3.1"))

locker = Locker(
lock=poetry_with_nested_path_deps_old_lockfile.pyproject.file.path.parent / "poetry.lock",
lock=poetry_with_nested_path_deps_old_lockfile.pyproject.file.path.parent
/ "poetry.lock",
local_config=poetry_with_nested_path_deps_old_lockfile.locker._local_config,
)
poetry_with_nested_path_deps_old_lockfile.set_locker(locker)

tester = command_tester_factory("lock", poetry=poetry_with_nested_path_deps_old_lockfile)
tester = command_tester_factory(
"lock", poetry=poetry_with_nested_path_deps_old_lockfile
)
tester.execute("--no-update")

packages = locker.locked_repository().packages
Expand Down

0 comments on commit dcc0f2c

Please sign in to comment.