Skip to content

Commit bdad347

Browse files
committed
commit version change for CI (part2)
and mock get request
1 parent 2b6013d commit bdad347

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

bioimageio/spec/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": "0.5.5.0a"
2+
"version": "0.5.5.0"
33
}

tests/test_internal/test_io.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,15 +247,15 @@ def test_serialize_relative_file_path_from_union():
247247
assert data == path_str
248248

249249

250-
def test_open_url_with_wrong_sha():
250+
def test_open_url_with_wrong_sha(respx_mock: MockRouter):
251251
from bioimageio.spec._internal.io import (
252252
_open_url, # pyright: ignore[reportPrivateUsage]
253253
)
254254

255255
url = "https://example.com/file.txt"
256256
sha = Sha256("0" * 64) # invalid sha256 for testing
257257

258-
with pytest.raises(
259-
httpx.HTTPStatusError, match=f"Client error '404 Not Found' for url '{url}'"
260-
):
258+
_ = respx_mock.get(url).mock(side_effect=httpx.InvalidURL("Invalid URL"))
259+
260+
with pytest.raises(httpx.InvalidURL, match="Invalid URL"):
261261
_ = _open_url(HttpUrl(url), sha256=sha)

0 commit comments

Comments
 (0)