From 2240c6a5f2be428603332ee6502b2a509077173c Mon Sep 17 00:00:00 2001 From: Guillaume Maze Date: Wed, 18 Dec 2024 10:30:54 +0100 Subject: [PATCH] Update test_fetchers_data_gdac.py --- argopy/tests/test_fetchers_data_gdac.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/argopy/tests/test_fetchers_data_gdac.py b/argopy/tests/test_fetchers_data_gdac.py index 869aa655..f1e91a35 100644 --- a/argopy/tests/test_fetchers_data_gdac.py +++ b/argopy/tests/test_fetchers_data_gdac.py @@ -11,6 +11,7 @@ import shutil from urllib.parse import urlparse import logging +import importlib import argopy from argopy import DataFetcher as ArgoDataFetcher @@ -34,9 +35,14 @@ argopy.tutorial.open_dataset("gdac")[0], MOCKHTTP, 'MOCKFTP', - 's3://argo-gdac-sandbox/pub', # todo: How do we mock a s3 server ? ] +HAS_S3FS = importlib.util.find_spec("s3fs") is not None +if HAS_S3FS: + # todo Create a mocked server for s3 tests + HOSTS.append("s3://argo-gdac-sandbox/pub") # todo: How do we mock a s3 server ? + + """ List access points to be tested. For each access points, we list 1-to-2 scenario to make sure all possibilities are tested