Skip to content

Commit

Permalink
Update speech_model_adaptation_beta_test.py
Browse files Browse the repository at this point in the history
chore: shorten the ids.
  • Loading branch information
jameszhao00 authored and telpirion committed Mar 13, 2023
1 parent 061cb4f commit ae0a869
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions speech/snippets/speech_model_adaptation_beta_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ def test_model_adaptation_beta(custom_class_id, phrase_set_id, capsys):

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

@pytest.fixture
def phrase_set_id():
phrase_set_id = f"phraseSetId{uuid.uuid4()}"
# The phrase set id can't be too long
phrase_set_id = f"phraseSetId{str(uuid.uuid4())[:8]}"
yield phrase_set_id
# clean up resources
PHRASE_PARENT = (
Expand Down

0 comments on commit ae0a869

Please sign in to comment.