From 83a5b381f585714981e8718c332022d1c3a21d63 Mon Sep 17 00:00:00 2001 From: Yannick DAYER <yannick.dayer@idiap.ch> Date: Mon, 13 Feb 2023 14:49:02 +0100 Subject: [PATCH] [tests] Remove useless download via bob.extension. Removes bob.extension as dependency. --- conda/meta.yaml | 2 -- pyproject.toml | 1 - tests/test_databases.py | 8 ++------ 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/conda/meta.yaml b/conda/meta.yaml index 5dd6d09..edc43b3 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -29,7 +29,6 @@ requirements: - scikit-image {{ scikit_image }} - matplotlib {{ matplotlib }} - clapp - - bob.extension - bob.io.base - bob.bio.base @@ -37,7 +36,6 @@ requirements: - python - setuptools - clapp - - bob.extension - bob.io.base - bob.bio.base - {{ pin_compatible('numpy') }} diff --git a/pyproject.toml b/pyproject.toml index 49d3a41..985eeed 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,7 +36,6 @@ "scikit-image", "matplotlib", "clapp", - "bob.extension", "bob.io.base", "bob.bio.base", ] diff --git a/tests/test_databases.py b/tests/test_databases.py index ebedc63..5a6ae5f 100644 --- a/tests/test_databases.py +++ b/tests/test_databases.py @@ -4,8 +4,6 @@ import os -from bob.extension.download import get_file - def test_verafinger_contactless(): from bob.bio.vein.database.verafinger_contactless import ( @@ -13,8 +11,7 @@ def test_verafinger_contactless(): ) # Getting the absolute path - urls = VerafingerContactless.dataset_protocols_urls - filename = get_file("verafinger_contactless.tar.gz", urls) + filename = VerafingerContactless(protocol="nom").dataset_protocols_path # Removing the file before the test try: @@ -81,8 +78,7 @@ def test_utfvp(): from bob.bio.vein.database.utfvp import UtfvpDatabase # Getting the absolute path - urls = UtfvpDatabase.dataset_protocols_urls - filename = get_file("utfvp_csv.tar.gz", urls) + filename = UtfvpDatabase(protocol="nom").dataset_protocols_path # Removing the file before the test try: -- GitLab