diff --git a/tests/src/pinterest/ads/test_ad_groups.py b/tests/src/pinterest/ads/test_ad_groups.py index af61403..8e9935f 100644 --- a/tests/src/pinterest/ads/test_ad_groups.py +++ b/tests/src/pinterest/ads/test_ad_groups.py @@ -8,6 +8,7 @@ from openapi_generated.pinterest_client.model.ad_group_response import AdGroupResponse from openapi_generated.pinterest_client.model.ad_group_array_response import AdGroupArrayResponse from openapi_generated.pinterest_client.model.ad_group_array_response_element import AdGroupArrayResponseElement +from openapi_generated.pinterest_client.model.targeting_spec import TargetingSpec from pinterest.ads.ad_groups import AdGroup from pinterest.ads.ads import Ad @@ -101,9 +102,7 @@ def test_update_ad_group(self, get_mock, update_mock): """ update_mock.__name__ = "ad_groups_update" new_name = "SDK_AD_GROUP_NEW_NAME" - new_spec = { - "GENDER": ["male"] - } + new_spec = TargetingSpec(gender=["male"]) get_mock.return_value = AdGroupResponse( id=self.test_ad_group_id,