Skip to content

Commit 2e27d5d

Browse files
committed
Fix format and lint
1 parent cc1b58d commit 2e27d5d

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

tests/integration/conftest.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,7 @@ def clean_audit_bucket(s3_client: BaseClient, audit_bucket: str):
215215
pages = paginator.paginate(Bucket=audit_bucket)
216216
for page in pages:
217217
if "Contents" in page:
218-
for obj in page["Contents"]:
219-
objects_to_delete.append({"Key": obj["Key"]})
218+
objects_to_delete.extend([{"Key": obj["Key"]} for obj in page["Contents"]])
220219

221220
if objects_to_delete:
222221
s3_client.delete_objects(
@@ -225,7 +224,6 @@ def clean_audit_bucket(s3_client: BaseClient, audit_bucket: str):
225224
)
226225

227226

228-
229227
@pytest.fixture(scope="session")
230228
def flask_function_url(lambda_client: BaseClient, flask_function: str) -> URL:
231229
response = lambda_client.create_function_url_config(FunctionName=flask_function, AuthType="NONE")

0 commit comments

Comments
 (0)