def _fixture(): with _make_session( docker_client=docker_client, services=services, region_name=region_name, kinesis_error_probability=kinesis_error_probability, dynamodb_error_probability=dynamodb_error_probability, container_log_level=container_log_level, localstack_verison=localstack_verison, auto_remove=auto_remove, pull_image=pull_image, container_name=container_name, **kwargs) as session: with session.botocore.patch_botocore(): yield session
def _fixture(pytestconfig): if not pytestconfig.pluginmanager.hasplugin("localstack"): pytest.skip("skipping because localstack plugin isn't loaded") with _make_session( docker_client=docker_client, services=services, region_name=region_name, kinesis_error_probability=kinesis_error_probability, dynamodb_error_probability=dynamodb_error_probability, container_log_level=container_log_level, localstack_version=localstack_version, auto_remove=auto_remove, pull_image=pull_image, container_name=container_name, **kwargs) as session: with session.botocore.patch_botocore(): yield session