@@ -505,11 +505,6 @@ def test_create_model_armor_template_with_basic_sdp(
505
505
created_template = create_model_armor_template_with_basic_sdp (
506
506
project_id , location_id , template_id
507
507
)
508
- expected_name_format = (
509
- f"projects/{ project_id } /locations/{ location_id } /templates/{ template_id } "
510
- )
511
-
512
- assert created_template .name == expected_name_format
513
508
514
509
filter_enforcement = (
515
510
created_template .filter_config .sdp_settings .basic_config .filter_enforcement
@@ -541,12 +536,6 @@ def test_create_model_armor_template_with_advanced_sdp(
541
536
sdp_deidentify_template_id ,
542
537
)
543
538
544
- expected_name_format = (
545
- f"projects/{ project_id } /locations/{ location_id } /templates/{ template_id } "
546
- )
547
-
548
- assert created_template .name == expected_name_format
549
-
550
539
advanced_config = (
551
540
created_template .filter_config .sdp_settings .advanced_config
552
541
)
@@ -567,11 +556,7 @@ def test_create_model_armor_template_with_metadata(
567
556
location_id ,
568
557
template_id ,
569
558
)
570
- expected_name_format = (
571
- f"projects/{ project_id } /locations/{ location_id } /templates/{ template_id } "
572
- )
573
559
574
- assert created_template .name == expected_name_format
575
560
assert created_template .template_metadata .ignore_partial_invocation_failures
576
561
assert created_template .template_metadata .log_sanitize_operations
577
562
@@ -584,15 +569,9 @@ def test_create_model_armor_template_with_labels(
584
569
that matches the expected format.
585
570
"""
586
571
expected_labels = {"name" : "wrench" , "count" : "3" }
587
-
588
- created_template = create_model_armor_template_with_labels (
572
+ create_model_armor_template_with_labels (
589
573
project_id , location_id , template_id , labels = expected_labels
590
574
)
591
- expected_name_format = (
592
- f"projects/{ project_id } /locations/{ location_id } /templates/{ template_id } "
593
- )
594
-
595
- assert created_template .name == expected_name_format
596
575
597
576
template_with_labels = get_model_armor_template (
598
577
project_id , location_id , template_id
@@ -641,11 +620,6 @@ def test_update_model_armor_template_metadata(
641
620
project_id , location_id , template_id
642
621
)
643
622
644
- expected_name_format = (
645
- f"projects/{ project_id } /locations/{ location_id } /templates/{ template_id } "
646
- )
647
-
648
- assert updated_template .name == expected_name_format
649
623
assert updated_template .template_metadata .ignore_partial_invocation_failures
650
624
assert updated_template .template_metadata .log_sanitize_operations
651
625
@@ -663,14 +637,9 @@ def test_update_model_armor_template_labels(
663
637
664
638
template_id , _ = all_filter_template
665
639
666
- updated_template = update_model_armor_template_labels (
640
+ update_model_armor_template_labels (
667
641
project_id , location_id , template_id , expected_labels
668
642
)
669
- expected_name_format = (
670
- f"projects/{ project_id } /locations/{ location_id } /templates/{ template_id } "
671
- )
672
-
673
- assert updated_template .name == expected_name_format
674
643
675
644
template_with_lables = get_model_armor_template (
676
645
project_id , location_id , template_id
@@ -695,12 +664,6 @@ def test_update_model_armor_template_with_mask_configuration(
695
664
project_id , location_id , template_id
696
665
)
697
666
698
- expected_name_format = (
699
- f"projects/{ project_id } /locations/{ location_id } /templates/{ template_id } "
700
- )
701
-
702
- assert updated_template .name == expected_name_format
703
-
704
667
filter_enforcement = (
705
668
updated_template .filter_config .sdp_settings .basic_config .filter_enforcement
706
669
)
0 commit comments