Skip to content

Commit

Permalink
snake_caseのやつもassertする
Browse files Browse the repository at this point in the history
Refs: #946 (comment)
Co-authored-by: Hiroshiba <[email protected]>
  • Loading branch information
qryxip and Hiroshiba committed Jan 28, 2025
1 parent a0dec45 commit 09ce920
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,17 @@ def test_getattr() -> None:
"prePhonemeLength": 0.1,
"postPhonemeLength": 0.1,
"outputSamplingRate": 24000,
"outputStereo": false
"outputStereo": false,
"pauseLength": null,
"pauseLengthScale": 1.0,
"kana": ""
}
""",
)
)
)

assert getattr(query, "accent_phrases") is query.accent_phrases
assert getattr(query, "speedScale") is query.speed_scale
assert getattr(query, "pitchScale") is query.pitch_scale
assert getattr(query, "intonationScale") is query.intonation_scale
Expand All @@ -95,6 +99,7 @@ def test_getattr() -> None:
assert getattr(query, "outputStereo") is query.output_stereo
assert getattr(query, "pauseLength") is query.pause_length
assert getattr(query, "pauseLengthScale") is query.pause_length_scale
assert getattr(query, "kana") is query.kana

with pytest.raises(
AttributeError, match="^'AudioQuery' has no attribute 'nonexisting_name'$"
Expand Down

0 comments on commit 09ce920

Please sign in to comment.