@@ -750,9 +750,7 @@ def test_add_classification(client: AtlanClient, term1: AtlasGlossaryTerm):
750
750
client .asset .add_atlan_tags (
751
751
AtlasGlossaryTerm , term1 .qualified_name , [CLASSIFICATION_NAME ]
752
752
)
753
- glossary_term = client .asset .get_by_guid (
754
- term1 .guid , asset_type = AtlasGlossaryTerm , attributes = ["atlanTags" ]
755
- )
753
+ glossary_term = client .asset .get_by_guid (term1 .guid , asset_type = AtlasGlossaryTerm )
756
754
assert glossary_term .atlan_tags
757
755
assert len (glossary_term .atlan_tags ) == 1
758
756
classification = glossary_term .atlan_tags [0 ]
@@ -797,9 +795,7 @@ def test_update_classification(client: AtlanClient, term1: AtlasGlossaryTerm):
797
795
propagate = True ,
798
796
remove_propagation_on_delete = False ,
799
797
)
800
- glossary_term = client .asset .get_by_guid (
801
- term1 .guid , asset_type = AtlasGlossaryTerm , attributes = ["atlanTags" ]
802
- )
798
+ glossary_term = client .asset .get_by_guid (term1 .guid , asset_type = AtlasGlossaryTerm )
803
799
assert glossary_term .atlan_tags
804
800
assert len (glossary_term .atlan_tags ) == 1
805
801
classification = glossary_term .atlan_tags [0 ]
@@ -816,9 +812,7 @@ def test_remove_classification(client: AtlanClient, term1: AtlasGlossaryTerm):
816
812
client .asset .remove_atlan_tag (
817
813
AtlasGlossaryTerm , term1 .qualified_name , CLASSIFICATION_NAME
818
814
)
819
- glossary_term = client .asset .get_by_guid (
820
- term1 .guid , asset_type = AtlasGlossaryTerm , attributes = ["atlanTags" ]
821
- )
815
+ glossary_term = client .asset .get_by_guid (term1 .guid , asset_type = AtlasGlossaryTerm )
822
816
assert not glossary_term .atlan_tags
823
817
824
818
@@ -829,9 +823,7 @@ def test_multiple_add_classification(client: AtlanClient, term1: AtlasGlossaryTe
829
823
term1 .qualified_name ,
830
824
[CLASSIFICATION_NAME , CLASSIFICATION_NAME2 ],
831
825
)
832
- glossary_term = client .asset .get_by_guid (
833
- term1 .guid , asset_type = AtlasGlossaryTerm , attributes = ["atlanTags" ]
834
- )
826
+ glossary_term = client .asset .get_by_guid (term1 .guid , asset_type = AtlasGlossaryTerm )
835
827
assert glossary_term .atlan_tags
836
828
assert len (glossary_term .atlan_tags ) == 2
837
829
classification = glossary_term .atlan_tags [0 ]
@@ -849,9 +841,7 @@ def test_multiple_update_classification(client: AtlanClient, term1: AtlasGlossar
849
841
propagate = True ,
850
842
remove_propagation_on_delete = False ,
851
843
)
852
- glossary_term = client .asset .get_by_guid (
853
- term1 .guid , asset_type = AtlasGlossaryTerm , attributes = ["atlanTags" ]
854
- )
844
+ glossary_term = client .asset .get_by_guid (term1 .guid , asset_type = AtlasGlossaryTerm )
855
845
assert glossary_term .atlan_tags
856
846
assert len (glossary_term .atlan_tags ) == 2
857
847
classification = glossary_term .atlan_tags [0 ]
@@ -876,9 +866,7 @@ def test_multiple_remove_classification(client: AtlanClient, term1: AtlasGlossar
876
866
term1 .qualified_name ,
877
867
[CLASSIFICATION_NAME , CLASSIFICATION_NAME2 ],
878
868
)
879
- glossary_term = client .asset .get_by_guid (
880
- term1 .guid , asset_type = AtlasGlossaryTerm , attributes = ["atlanTags" ]
881
- )
869
+ glossary_term = client .asset .get_by_guid (term1 .guid , asset_type = AtlasGlossaryTerm )
882
870
assert not glossary_term .atlan_tags
883
871
884
872
0 commit comments