Skip to content

Commit

Permalink
ruff format beta changes (#16957)
Browse files Browse the repository at this point in the history
  • Loading branch information
seanbudd authored Aug 5, 2024
1 parent a8d39d0 commit fc72c09
Showing 1 changed file with 22 additions and 16 deletions.
38 changes: 22 additions & 16 deletions tests/unit/test_speech.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit fc72c09

Please sign in to comment.