Skip to content

Commit f37bc06

Browse files
jameszhao00munkhuushmgl
authored andcommitted
Update speech_model_adaptation_beta_test.py
chore: shorten the ids.
1 parent 4c1b7ef commit f37bc06

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

speech/snippets/speech_model_adaptation_beta_test.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ def test_model_adaptation_beta(custom_class_id, phrase_set_id, capsys):
4040

4141
@pytest.fixture
4242
def custom_class_id():
43-
custom_class_id = f"customClassId{uuid.uuid4()}"
43+
# The custom class id can't be too long
44+
custom_class_id = f"customClassId{str(uuid.uuid4())[:8]}"
4445
yield custom_class_id
4546
# clean up resources
4647
CLASS_PARENT = (
@@ -51,7 +52,8 @@ def custom_class_id():
5152

5253
@pytest.fixture
5354
def phrase_set_id():
54-
phrase_set_id = f"phraseSetId{uuid.uuid4()}"
55+
# The phrase set id can't be too long
56+
phrase_set_id = f"phraseSetId{str(uuid.uuid4())[:8]}"
5557
yield phrase_set_id
5658
# clean up resources
5759
PHRASE_PARENT = (

0 commit comments

Comments
 (0)