boto3¶
pytest-localstack extensions for boto3.
-
class
pytest_localstack.contrib.boto3.
Boto3TestResourceFactory
(localstack_session)[source]¶ Create boto3 clients and resources to interact with a
LocalstackSession
.Parameters: localstack_session ( LocalstackSession
) – The session that this factory should create test resources for.-
client
(service_name)[source]¶ Return a patched boto3 Client object that will use localstack.
Arguments are the same as
boto3.client()
.
-
default_session
¶ Return a default boto3 Localstack Session.
Most applications only need one Session.
-
resource
(service_name)[source]¶ Return a patched boto3 Resource object that will use localstack.
Arguments are the same as
boto3.resource()
.
-
session
(*args, **kwargs)[source]¶ Return a boto3 Session object that will use localstack.
Arguments are the same as
boto3.session.Session
.
-