Skip to content

Commit 202d1cb

Browse files
committed
use 32 character name
1 parent 6b56cfe commit 202d1cb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

translate/automl/model_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
@pytest.fixture
3030
def model():
3131
client = automl.AutoMlClient()
32-
model_name = "test_" + str(uuid.uuid4())
32+
model_name = "test_{}".format(uuid.uuid4()).replace("-", "")[:32]
3333
project_location = client.location_path(project_id, compute_region)
3434
my_model = {
3535
"display_name": model_name,

vision/automl/model_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
@pytest.fixture
2828
def model():
2929
client = automl.AutoMlClient()
30-
model_name = "test_" + str(uuid.uuid4())
30+
model_name = "test_{}".format(uuid.uuid4()).replace("-", "")[:32]
3131
project_location = client.location_path(project_id, compute_region)
3232
my_model = {
3333
"display_name": model_name,
@@ -43,4 +43,4 @@ def model():
4343

4444
def test_model_create_status_delete(capsys, model):
4545
operation_name = model.operation.name
46-
assert operation_name
46+
assert operation_name

0 commit comments

Comments
 (0)