Skip to content

Commit f635216

Browse files
committed
fix: tests
1 parent 6228bc8 commit f635216

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from aiobotocore.session import get_session
66

77
from taskiq_sqs import S3ResultBackend
8+
from taskiq_sqs.bucket import S3Bucket
89

910

1011
if TYPE_CHECKING:
@@ -73,7 +74,7 @@ async def s3_backend(
7374
aws_credentials: AWSCredentials,
7475
s3_bucket: str, # noqa: ARG001
7576
) -> AsyncGenerator[S3ResultBackend, Any]:
76-
backend = S3ResultBackend(bucket_name=TEST_BUCKET, **aws_credentials)
77+
backend = S3ResultBackend(bucket=S3Bucket(name=TEST_BUCKET), **aws_credentials)
7778
await backend.startup()
7879
assert backend._s3_client
7980
yield backend

0 commit comments

Comments
 (0)