We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc1b58d commit 2e27d5dCopy full SHA for 2e27d5d
1 file changed
tests/integration/conftest.py
@@ -215,8 +215,7 @@ def clean_audit_bucket(s3_client: BaseClient, audit_bucket: str):
215
pages = paginator.paginate(Bucket=audit_bucket)
216
for page in pages:
217
if "Contents" in page:
218
- for obj in page["Contents"]:
219
- objects_to_delete.append({"Key": obj["Key"]})
+ objects_to_delete.extend([{"Key": obj["Key"]} for obj in page["Contents"]])
220
221
if objects_to_delete:
222
s3_client.delete_objects(
@@ -225,7 +224,6 @@ def clean_audit_bucket(s3_client: BaseClient, audit_bucket: str):
225
224
)
226
227
228
-
229
@pytest.fixture(scope="session")
230
def flask_function_url(lambda_client: BaseClient, flask_function: str) -> URL:
231
response = lambda_client.create_function_url_config(FunctionName=flask_function, AuthType="NONE")
0 commit comments