Updated arguments

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2020-02-15 23:45:50 +01:00
parent 7e58adb490
commit 3ab06176ca
2 changed files with 3 additions and 3 deletions

View file

@ -70,11 +70,11 @@ class Utils:
if line.startswith("PACKAGE NAME:"):
yield split_package(line[14:].strip())[0]
def check_downloaded(self, path, maybe_downloaded):
def check_downloaded(self, path, downloaded):
"""Check if files downloaded and return downloaded
packages
"""
for pkg in maybe_downloaded:
for pkg in downloaded:
if os.path.isfile(f"{path}{pkg}"):
yield pkg

View file

@ -10,4 +10,4 @@ def test_dimensional_list():
def test_remove_dbs():
lists = [1, 2, 3, 3, 4, 5, 2, 1]
utils = Utils()
assert [1, 2, 3, 4, 5] == utils.remove_dbs(lists)
assert [1, 2, 3, 4, 5] == utils.remove_dbs(lists)