Fix mypy error in Minio adapter log assertion.
Test Python Package / unit-tests (pull_request) Successful in 10s
Code Quality Pipeline / code-quality (pull_request) Successful in 33s
Test Python Package / integration-tests (pull_request) Successful in 20s
PR Title Check / check-title (pull_request) Successful in 42s
Test Python Package / coverage-report (pull_request) Successful in 14s
Test Python Package / unit-tests (pull_request) Successful in 10s
Code Quality Pipeline / code-quality (pull_request) Successful in 33s
Test Python Package / integration-tests (pull_request) Successful in 20s
PR Title Check / check-title (pull_request) Successful in 42s
Test Python Package / coverage-report (pull_request) Successful in 14s
Narrow optional bucket name before checking it appears in captured log text. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
co-authored by
Cursor
parent
b886a7c147
commit
82a702db0c
@@ -237,7 +237,9 @@ def test_should_log_warning_when_getting_nonexistent_object(
|
|||||||
assert result is None
|
assert result is None
|
||||||
assert "Object not found" in caplog.text
|
assert "Object not found" in caplog.text
|
||||||
assert object_name 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:
|
def test_should_reraise_s3error_other_than_no_such_key() -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user