Skip to content

Commit

Permalink
Update test_fetchers_data_erddap_bgc.py
Browse files Browse the repository at this point in the history
- improve debug message to better identify failing test
  • Loading branch information
gmaze committed Aug 23, 2024
1 parent 4ee9913 commit 06eed8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion argopy/tests/test_fetchers_data_erddap_bgc.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,11 @@ def assert_all(this_fetcher, cacheable):

try:
assert_all(this_fetcher, cacheable)
except:
except Exception as e:
if this_fetcher._mode not in ['expert']:
pytest.xfail("BGC is not yet supported in '%s' user mode" % this_fetcher._mode)
else:
log.debug("Fetcher instance assert false because: %s" % e)
assert False


Expand Down

0 comments on commit 06eed8c

Please sign in to comment.