Skip to content

Commit ca1718a

Browse files
authored
Merge pull request #592 from dcs4cop/alicja-574-fix_server_data_access_xcube_python_api
Fixing tests for accessing data from xcube server via python api
2 parents 4515277 + 5ef8e90 commit ca1718a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/webapi/test_s3buckethandlers.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,19 @@ class S3BucketHandlersTest(unittest.TestCase):
3131
def test_open_cube_from_xube_server_rel_path(self):
3232
ds = open_cube('s3bucket/local',
3333
format_name='zarr',
34+
s3_kwargs={
35+
'anon': True
36+
},
3437
s3_client_kwargs=dict(endpoint_url=SERVER_URL))
3538
self.assertCubeOk(ds)
3639

3740
@unittest.skipUnless(XCUBE_SERVER_IS_RUNNING, SKIP_HELP)
3841
def test_open_cube_from_xube_server_abs_path(self):
3942
ds = open_cube('http://localhost:8080/s3bucket/local',
40-
format_name='zarr')
43+
format_name='zarr',
44+
s3_kwargs={
45+
'anon': True
46+
})
4147
self.assertCubeOk(ds)
4248

4349
def assertCubeOk(self, ds):

0 commit comments

Comments
 (0)