diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 62fc925..d0a01cf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,19 +12,19 @@ repos: - id: mixed-line-ending - repo: https://github.com/asottile/pyupgrade - rev: v2.37.3 + rev: v3.0.0 hooks: - id: pyupgrade args: - '--py37-plus' - repo: https://github.com/psf/black - rev: 22.8.0 + rev: 22.10.0 hooks: - id: black-jupyter - repo: https://github.com/keewis/blackdoc - rev: v0.3.6 + rev: v0.3.7 hooks: - id: blackdoc @@ -39,6 +39,6 @@ repos: - id: isort - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.0.0-alpha.0 + rev: v3.0.0-alpha.1 hooks: - id: prettier diff --git a/tests/test_source.py b/tests/test_source.py index dcc9e34..01333b7 100644 --- a/tests/test_source.py +++ b/tests/test_source.py @@ -69,10 +69,10 @@ def THREDDSMergedSource_cat_short_simplecache( def test_THREDDSMergedSource(THREDDSMergedSource_cat): cat = THREDDSMergedSource_cat ds = cat.to_dask() - assert dict(ds.dims) == {'lat': 73, 'lon': 144, 'time': 731} + assert dict(ds.dims) == {'lat': 73, 'lon': 144, 'nbnds': 2, 'time': 731} d = cat.discover() assert set(d['metadata']['coords']) == {'lat', 'lon', 'time'} - assert set(d['metadata']['data_vars'].keys()) == {'air'} + assert set(d['metadata']['data_vars'].keys()) == {'air', 'time_bnds'} def test_THREDDSMergedSource_long_short(THREDDSMergedSource_cat, THREDDSMergedSource_cat_short):