From aa84d97100cbcbefa82b51f1eabdc39e8f243979 Mon Sep 17 00:00:00 2001 From: RonTamG <33351836+RonTamG@users.noreply.github.com> Date: Mon, 12 Feb 2024 18:49:07 +0000 Subject: [PATCH] fix: added downloading of packages with required and important priority --- src/index.py | 3 --- tests/test_index.py | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/index.py b/src/index.py index d6c3300..952780e 100644 --- a/src/index.py +++ b/src/index.py @@ -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: diff --git a/tests/test_index.py b/tests/test_index.py index e86b346..ddd47fe 100644 --- a/tests/test_index.py +++ b/tests/test_index.py @@ -149,7 +149,7 @@ 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(): @@ -157,7 +157,7 @@ def test_should_get_package_dependencies_with_recommended(): 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():