@@ -209,9 +209,9 @@ def test_s3_backfilling(tmp_path: pathlib.Path):
209
209
210
210
def test_s3_json_read_and_recovery (tmp_path : pathlib .Path ):
211
211
pstorage_s3_path = (
212
- "integration_tests/test_s3_json_read_write_pstorage_full/{}" . format ( time .time ())
212
+ f "integration_tests/test_s3_json_read_write_pstorage_full/{ time .time ()} "
213
213
)
214
- input_s3_path = "integration_tests/test_s3_json_read_write/{}" . format ( time .time ())
214
+ input_s3_path = f "integration_tests/test_s3_json_read_write/{ time .time ()} "
215
215
output_path = tmp_path / "output.json"
216
216
217
217
def run_pw_program ():
@@ -356,7 +356,7 @@ def test_s3_alternative_path(tmp_path: pathlib.Path):
356
356
write_lines (model_output_path , input_contents )
357
357
358
358
table = pw .io .s3_csv .read (
359
- "s3://aws-integrationtest/{}" . format ( input_s3_path ) ,
359
+ f "s3://aws-integrationtest/{ input_s3_path } " ,
360
360
aws_s3_settings = pw .io .s3_csv .AwsS3Settings (
361
361
access_key = "AKIAX67C7K343BP4QUWN" ,
362
362
secret_access_key = os .environ ["AWS_S3_SECRET_ACCESS_KEY" ],
@@ -384,7 +384,7 @@ def test_s3_wrong_path(tmp_path: pathlib.Path):
384
384
output_path = tmp_path / "output.csv"
385
385
386
386
table = pw .io .s3_csv .read (
387
- "s3://aws-integrationtest/{}" . format ( input_s3_path ) ,
387
+ f "s3://aws-integrationtest/{ input_s3_path } " ,
388
388
aws_s3_settings = pw .io .s3_csv .AwsS3Settings (
389
389
access_key = "AKIAX67C7K343BP4QUWN" ,
390
390
secret_access_key = os .environ ["AWS_S3_SECRET_ACCESS_KEY" ],
@@ -414,7 +414,7 @@ def test_s3_creds_from_profiles(tmp_path: pathlib.Path):
414
414
write_lines (model_output_path , input_contents )
415
415
416
416
table = pw .io .s3_csv .read (
417
- "s3://aws-integrationtest/{}" . format ( input_s3_path ) ,
417
+ f "s3://aws-integrationtest/{ input_s3_path } " ,
418
418
aws_s3_settings = pw .io .s3_csv .AwsS3Settings (region = "eu-central-1" ),
419
419
value_columns = ["key" , "value" ],
420
420
mode = "static" ,
@@ -448,7 +448,7 @@ class InputSchema(pw.Schema):
448
448
value : str
449
449
450
450
table = pw .io .s3 .read (
451
- "s3://aws-integrationtest/{}" . format ( input_s3_path ) ,
451
+ f "s3://aws-integrationtest/{ input_s3_path } " ,
452
452
format = "csv" ,
453
453
schema = InputSchema ,
454
454
mode = "static" ,
0 commit comments