Skip to content

Commit 8d985e4

Browse files
committed
test: simplify assertion
1 parent 92d9f0f commit 8d985e4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/test_bump_update_version_in_files.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,12 +347,10 @@ def test_update_version_in_files_return_value(version_files):
347347

348348
# Verify all files in the input are in the returned list
349349
assert len(updated_files) == len(version_files)
350-
for file_path in version_files:
351-
assert file_path in updated_files
350+
assert set(version_files).issubset(updated_files)
352351

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

357355

358356
def test_update_version_in_files_return_value_partial_update(tmp_path):

0 commit comments

Comments
 (0)