Skip to content

Commit

Permalink
fix: added downloading of packages with required and important priority
Browse files Browse the repository at this point in the history
  • Loading branch information
RonTamG committed Feb 12, 2024
1 parent ba93cfa commit aa84d97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,6 @@ def get_package_dependencies(self, name, packages=None, with_recommended=False):
if packages is None:
packages = []

if current.priority in ["required", "important"]:
return None

if current in packages:
return None
else:
Expand Down
4 changes: 2 additions & 2 deletions tests/test_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,15 @@ def test_should_get_package_dependencies():

packages = index.get_package_dependencies("python3")

assert len(packages) == 33
assert len(packages) == 43


def test_should_get_package_dependencies_with_recommended():
index = valid_full_index_of_package()

packages = index.get_package_dependencies("python3", with_recommended=True)

assert len(packages) == 43
assert len(packages) == 104


def test_should_get_package_dependencies_should_fail_when_package_is_missing():
Expand Down

0 comments on commit aa84d97

Please sign in to comment.