🚨(back) update code linting with ruff

Apply new rules provided with ruff version v0.9.3
This commit is contained in:
Manuel Raynaud
2025-01-28 15:59:15 +01:00
parent 9bc2b4877f
commit 265a24fe7e
3 changed files with 15 additions and 15 deletions

View File

@@ -42,9 +42,9 @@ def test_update_files_content_type_metadata():
for key in keys:
head_resp = s3_client.head_object(Bucket=bucket_name, Key=key)
assert (
head_resp["ContentType"] == "image/png"
), f"ContentType not fixed, got {head_resp['ContentType']!r}"
assert head_resp["ContentType"] == "image/png", (
f"ContentType not fixed, got {head_resp['ContentType']!r}"
)
# Check that original metadata was preserved
assert head_resp["Metadata"].get("owner") == "None"