Skip to content

Commit

Permalink
Update test_fetchers_data_gdac.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gmaze committed Dec 18, 2024
1 parent d8f48a4 commit 2240c6a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion argopy/tests/test_fetchers_data_gdac.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import shutil
from urllib.parse import urlparse
import logging
import importlib

import argopy
from argopy import DataFetcher as ArgoDataFetcher
Expand All @@ -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
Expand Down

0 comments on commit 2240c6a

Please sign in to comment.