From 82a702db0cfb27a267dfa92a0ef7f0e635e603dc Mon Sep 17 00:00:00 2001 From: Brian Bjarke Jensen Date: Fri, 10 Jul 2026 14:04:36 +0200 Subject: [PATCH] Fix mypy error in Minio adapter log assertion. Narrow optional bucket name before checking it appears in captured log text. Co-authored-by: Cursor --- tests/integration/minio_adapter_test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/integration/minio_adapter_test.py b/tests/integration/minio_adapter_test.py index 81e7c9a..4b5343c 100644 --- a/tests/integration/minio_adapter_test.py +++ b/tests/integration/minio_adapter_test.py @@ -237,7 +237,9 @@ def test_should_log_warning_when_getting_nonexistent_object( assert result is None assert "Object not found" in caplog.text assert object_name in caplog.text - assert adapter._bucket_name in caplog.text + bucket_name = adapter._bucket_name + assert bucket_name is not None + assert bucket_name in caplog.text def test_should_reraise_s3error_other_than_no_such_key() -> None: