From 8028bc8d6e0c656ef2d49cf1eff59000ac5edd4b Mon Sep 17 00:00:00 2001 From: Gilderlane Ribeiro Alexandre Date: Tue, 3 Oct 2023 18:05:09 +0000 Subject: [PATCH] Update unit test --- tests/src/pinterest/ads/test_ad_groups.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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,