Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions clients/python/tests/test_e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,9 @@ def test_full_cycle(server_url: str) -> None:

session.delete(object_key)

with pytest.raises(RequestError, check=lambda e: e.status == 404):
with pytest.raises(RequestError) as exc_info:
session.get(object_key)
assert exc_info.value.status == 404


def test_full_cycle_uncompressed(server_url: str) -> None:
Expand Down Expand Up @@ -210,8 +211,9 @@ def test_not_found_with_different_scope(server_url: str) -> None:

# Now make sure we can't fetch it
session = client.session(test_usecase, org=42, project=9999)
with pytest.raises(RequestError, check=lambda e: e.status == 404):
with pytest.raises(RequestError) as exc_info:
session.get(object_key)
assert exc_info.value.status == 404


def test_fails_with_insufficient_auth_perms(server_url: str) -> None:
Expand All @@ -225,8 +227,9 @@ def test_fails_with_insufficient_auth_perms(server_url: str) -> None:

session = client.session(test_usecase, org=42, project=1337)

with pytest.raises(RequestError, check=lambda e: e.status == 403):
with pytest.raises(RequestError) as exc_info:
_object_key = session.put(b"test data")
assert exc_info.value.status == 403


def test_read_timeout() -> None:
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ requires-python = ">=3.11"
[tool.uv]
required-version = ">=0.9.18"

[[tool.uv.index]]
url = "https://pypi.devinfra.sentry.io/simple"
default = true

[tool.uv.workspace]
members = [
"clients/python",
Expand Down
Loading