Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7fe666b

Browse files
committedMar 15, 2025··
fix: file reformat
1 parent c9be3d4 commit 7fe666b

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed
 

‎tests/test_zarr_ipfs.py

+11-12
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def test_authenticated_gateway(random_zarr_dataset: tuple[str, xr.Dataset]):
156156
hamt = HAMT(
157157
store=IPFSStore(
158158
# Reverse proxy on port 5002
159-
rpc_uri_stem = "http://127.0.0.1:5002",
159+
rpc_uri_stem="http://127.0.0.1:5002",
160160
api_key="test",
161161
),
162162
transformer_encode=encrypt,
@@ -171,20 +171,19 @@ def test_authenticated_gateway(random_zarr_dataset: tuple[str, xr.Dataset]):
171171
# Test with wrong API Key
172172
with pytest.raises(Exception):
173173
hamt = HAMT(
174-
store=IPFSStore(
175-
rpc_uri_stem = "http://127.0.0.1:5002",
174+
store=IPFSStore(
175+
rpc_uri_stem="http://127.0.0.1:5002",
176176
api_key="badKey",
177177
),
178178
transformer_encode=encrypt,
179179
transformer_decode=decrypt,
180180
)
181181

182-
183182
# Test with just bearer_token key
184183
hamt = HAMT(
185-
store=IPFSStore(
184+
store=IPFSStore(
186185
bearer_token="test",
187-
rpc_uri_stem = "http://127.0.0.1:5002",
186+
rpc_uri_stem="http://127.0.0.1:5002",
188187
),
189188
transformer_encode=encrypt,
190189
transformer_decode=decrypt,
@@ -198,19 +197,19 @@ def test_authenticated_gateway(random_zarr_dataset: tuple[str, xr.Dataset]):
198197
# Test with wrong bearer
199198
with pytest.raises(Exception):
200199
hamt = HAMT(
201-
store=IPFSStore(
200+
store=IPFSStore(
202201
bearer_token="wrongBearer",
203-
rpc_uri_stem = "http://127.0.0.1:5002",
202+
rpc_uri_stem="http://127.0.0.1:5002",
204203
),
205204
transformer_encode=encrypt,
206205
transformer_decode=decrypt,
207206
)
208207

209208
# Test with just basic auth
210209
hamt = HAMT(
211-
store=IPFSStore(
210+
store=IPFSStore(
212211
basic_auth=("test", "test"),
213-
rpc_uri_stem = "http://127.0.0.1:5002",
212+
rpc_uri_stem="http://127.0.0.1:5002",
214213
),
215214
transformer_encode=encrypt,
216215
transformer_decode=decrypt,
@@ -224,9 +223,9 @@ def test_authenticated_gateway(random_zarr_dataset: tuple[str, xr.Dataset]):
224223
# Test with wrong basic auth
225224
with pytest.raises(Exception):
226225
hamt = HAMT(
227-
store=IPFSStore(
226+
store=IPFSStore(
228227
basic_auth=("wrong", "wrong"),
229-
rpc_uri_stem = "http://127.0.0.1:5002",
228+
rpc_uri_stem="http://127.0.0.1:5002",
230229
),
231230
transformer_encode=encrypt,
232231
transformer_decode=decrypt,

0 commit comments

Comments
 (0)