Skip to content

Commit

Permalink
Update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
gilderlane committed Oct 3, 2023
1 parent e64cdf4 commit 8028bc8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/src/pinterest/ads/test_ad_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 8028bc8

Please sign in to comment.