Skip to content

Commit 19b9e04

Browse files
authored
enable pydap in tests again (#6966)
* enable pydap in tests again * fix test
1 parent c01a6b8 commit 19b9e04

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

ci/requirements/environment-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ dependencies:
2929
- pip
3030
- pre-commit
3131
- pseudonetcdf
32-
# - pydap # https://github.com/pydap/pydap/pull/210
32+
- pydap
3333
# - pynio # Not available on Windows
3434
- pytest
3535
- pytest-cov

ci/requirements/environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ dependencies:
3333
- pooch
3434
- pre-commit
3535
- pseudonetcdf
36-
# - pydap # https://github.com/pydap/pydap/pull/210
36+
- pydap
3737
# - pynio: not compatible with netCDF4>1.5.3; only tested in py37-bare-minimum
3838
- pytest
3939
- pytest-cov

xarray/tests/test_backends.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4000,7 +4000,13 @@ def test_session(self):
40004000
session = setup_session("XarrayTestUser", "Xarray2017")
40014001
with mock.patch("pydap.client.open_url") as mock_func:
40024002
xr.backends.PydapDataStore.open("http://test.url", session=session)
4003-
mock_func.assert_called_with("http://test.url", session=session)
4003+
mock_func.assert_called_with(
4004+
url="http://test.url",
4005+
application=None,
4006+
session=session,
4007+
output_grid=True,
4008+
timeout=120,
4009+
)
40044010

40054011

40064012
@requires_scipy

0 commit comments

Comments
 (0)