Skip to content

Commit 4f7e09e

Browse files
author
Topi Jarvinen
committed
Refactor azure.py and test_file_utils.py for improved readability
- Adjusted formatting in `azure.py` to enhance clarity by adding space in the slicing operation. - Reformatted the `reports_dir_path` assignment in `test_file_utils.py` for better readability with line breaks.
1 parent f5ba346 commit 4f7e09e

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/FileUtils/storage/azure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ def list_directory(
625625
for blob in container_client.list_blobs(name_starts_with=blob_prefix):
626626
# Remove the prefix to get relative path
627627
relative_path = (
628-
blob.name[len(blob_prefix):] if blob_prefix else blob.name
628+
blob.name[len(blob_prefix) :] if blob_prefix else blob.name
629629
)
630630

631631
# Skip empty names

tests/unit/test_file_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,9 @@ def test_create_directory(file_utils):
228228

229229
# Create directory under reports
230230
reports_dir = file_utils.create_directory("monthly", parent_dir="reports")
231-
reports_dir_path = Path(reports_dir) # Now returns string, convert to Path for assertions
231+
reports_dir_path = Path(
232+
reports_dir
233+
) # Now returns string, convert to Path for assertions
232234
assert reports_dir_path.exists()
233235
assert reports_dir_path.is_dir()
234236
assert reports_dir_path == file_utils.project_root / "reports" / "monthly"

0 commit comments

Comments
 (0)