From 3c277d77e03c83f02cc1c5a3cea6203d962db6ae Mon Sep 17 00:00:00 2001 From: johndoknjas Date: Thu, 29 Aug 2024 14:39:53 -0700 Subject: [PATCH] f-string --- tests/stockfish/test_models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/stockfish/test_models.py b/tests/stockfish/test_models.py index a939c19..528482b 100644 --- a/tests/stockfish/test_models.py +++ b/tests/stockfish/test_models.py @@ -44,7 +44,7 @@ def test_sf_process(self): wtime_lines = send_command(process, "go wtime 1000") btime_lines = send_command(process, "go btime 1000") send_command(process, "quit") - assert any(x.startswith('bestmove {move}') for move in ('d2d4', 'b1c3') for x in wtime_lines) - assert any(x.startswith('bestmove {move}') for move in ('d2d4', 'b1c3') for x in btime_lines) + assert any(x.startswith(f'bestmove {move}') for move in ('d2d4', 'b1c3') for x in wtime_lines) + assert any(x.startswith(f'bestmove {move}') for move in ('d2d4', 'b1c3') for x in btime_lines)