✨ Source Bing Ads: add foreign keys (#32131)
Co-authored-by: darynaishchenko <darynaishchenko@users.noreply.github.com>
This commit is contained in:
@@ -230,3 +230,20 @@ def test_bulk_stream_read_with_chunks(mocked_client, config):
|
||||
"Tracking Template": None,
|
||||
"Type": "App Install Ad",
|
||||
}
|
||||
|
||||
|
||||
@patch.object(source_bing_ads.source, "Client")
|
||||
def test_transform(mocked_client, config):
|
||||
record = {"AdFormatPreference": "All", "DevicePreference": 0, "EditorialStatus": "ActiveLimited", "FinalAppUrls": None}
|
||||
transformed_record = Ads(mocked_client, config).transform(
|
||||
record=record, stream_slice={"ad_group_id": 90909090, "account_id": 909090, "customer_id": 9090909}
|
||||
)
|
||||
assert transformed_record == {
|
||||
"AccountId": 909090,
|
||||
"AdFormatPreference": "All",
|
||||
"AdGroupId": 90909090,
|
||||
"CustomerId": 9090909,
|
||||
"DevicePreference": 0,
|
||||
"EditorialStatus": "ActiveLimited",
|
||||
"FinalAppUrls": None,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user