Skip to content

Commit 92d412f

Browse files
committed
random
1 parent 47c2157 commit 92d412f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/pytest-simcore/src/pytest_simcore/file_extra.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,12 @@ def _create_random_content(
3737
if remaining_size <= 0:
3838
return remaining_size
3939

40-
# Decide to create a file or a subdirectory
41-
# Create a file
4240
file_size = ByteSize(
4341
faker.pyint(
4442
min_value=min(file_min_size, remaining_size),
4543
max_value=min(remaining_size, file_max_size),
4644
)
47-
) # max file size 1MB
45+
)
4846
file_path = base_dir / f"{faker.file_path(depth=faker.pyint(0, 5), absolute=False)}"
4947
file_path.parent.mkdir(parents=True, exist_ok=True)
5048
assert not file_path.exists()

0 commit comments

Comments
 (0)