Skip to content

Commit 028402f

Browse files
committed
test: simplify assertion
1 parent 92d9f0f commit 028402f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/test_bump_update_version_in_files.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -346,13 +346,10 @@ def test_update_version_in_files_return_value(version_files):
346346
assert isinstance(updated_files, list)
347347

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

353351
# Verify the returned paths are strings
354-
for file_path in updated_files:
355-
assert isinstance(file_path, str)
352+
assert all(isinstance(file_path, str) for file_path in updated_files)
356353

357354

358355
def test_update_version_in_files_return_value_partial_update(tmp_path):

0 commit comments

Comments
 (0)