Skip to content

Commit 5b2cf75

Browse files
committed
lastgenre: Fix test_pretend_option
only one arg is passed to the info log anymore.
1 parent bc9bf6e commit 5b2cf75

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/plugins/test_lastgenre.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ def test_pretend_option_skips_library_updates(self):
158158
mock_get_genre.assert_called_once()
159159

160160
assert any(
161-
call.args[1] == "Pretend: " for call in log_info.call_args_list
161+
call.args[0].startswith("Pretend:")
162+
for call in log_info.call_args_list
162163
)
163164

164165
# Verify that try_write was never called (file operations skipped)

0 commit comments

Comments
 (0)