From fc72c091ce257222803f137cbd2f773c1549a34a Mon Sep 17 00:00:00 2001 From: Sean Budd Date: Mon, 5 Aug 2024 14:10:12 +1000 Subject: [PATCH] ruff format beta changes (#16957) --- tests/unit/test_speech.py | 38 ++++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/tests/unit/test_speech.py b/tests/unit/test_speech.py index ee7674288c9..e91f4d3b12d 100644 --- a/tests/unit/test_speech.py +++ b/tests/unit/test_speech.py @@ -526,12 +526,14 @@ def test_decomposed_normalizeOnReport(self): self.assertEqual(repr(list(output)), expected) def test_normalizedInSymbolDict_normalizeOff(self): - expected = repr([ - '·', - EndUtteranceCommand(), - ]) + expected = repr( + [ + "·", + EndUtteranceCommand(), + ], + ) output = _getSpellingSpeechWithoutCharMode( - text='·', + text="·", locale="en", useCharacterDescriptions=False, sayCapForCapitals=False, @@ -543,12 +545,14 @@ def test_normalizedInSymbolDict_normalizeOff(self): self.assertEqual(repr(list(output)), expected) def test_normalizedInSymbolDict_normalizeOnDontReport(self): - expected = repr([ - processSpeechSymbol("en", "·"), - EndUtteranceCommand(), - ]) + expected = repr( + [ + processSpeechSymbol("en", "·"), + EndUtteranceCommand(), + ], + ) output = _getSpellingSpeechWithoutCharMode( - text='·', + text="·", locale="en", useCharacterDescriptions=False, sayCapForCapitals=False, @@ -560,13 +564,15 @@ def test_normalizedInSymbolDict_normalizeOnDontReport(self): self.assertEqual(repr(list(output)), expected) def test_normalizedInSymbolDict_normalizeOnReport(self): - expected = repr([ - processSpeechSymbol("en", "·"), - ' normalized', - EndUtteranceCommand(), - ]) + expected = repr( + [ + processSpeechSymbol("en", "·"), + " normalized", + EndUtteranceCommand(), + ], + ) output = _getSpellingSpeechWithoutCharMode( - text='·', + text="·", locale="en", useCharacterDescriptions=False, sayCapForCapitals=False,