Skip to content

Commit 670d893

Browse files
authored
tests: simplify assertion
1 parent e2ea6d5 commit 670d893

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_bump_update_version_in_files.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,7 @@ def test_update_version_in_files_return_value(version_files):
350350
assert set(version_files).issubset(updated_files)
351351

352352
# Verify the returned paths are strings
353-
for file_path in updated_files:
354-
assert isinstance(file_path, str)
353+
assert all(isinstance(file_path, str) for file_path in updated_files)
355354

356355

357356
def test_update_version_in_files_return_value_partial_update(tmp_path):

0 commit comments

Comments
 (0)