We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6228bc8 commit f635216Copy full SHA for f635216
1 file changed
tests/conftest.py
@@ -5,6 +5,7 @@
5
from aiobotocore.session import get_session
6
7
from taskiq_sqs import S3ResultBackend
8
+from taskiq_sqs.bucket import S3Bucket
9
10
11
if TYPE_CHECKING:
@@ -73,7 +74,7 @@ async def s3_backend(
73
74
aws_credentials: AWSCredentials,
75
s3_bucket: str, # noqa: ARG001
76
) -> AsyncGenerator[S3ResultBackend, Any]:
- backend = S3ResultBackend(bucket_name=TEST_BUCKET, **aws_credentials)
77
+ backend = S3ResultBackend(bucket=S3Bucket(name=TEST_BUCKET), **aws_credentials)
78
await backend.startup()
79
assert backend._s3_client
80
yield backend
0 commit comments