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: