Skip to content

Commit

Permalink
Updates unittests with new total of stream expected and v12 instead o…
Browse files Browse the repository at this point in the history
…f v9 in urls
  • Loading branch information
DanielPDWalker committed Dec 5, 2022
1 parent df9a5b5 commit 0a0f70c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tap_googleads/tests/test_base_credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_base_credentials_discovery(self):
catalog = TapGoogleAds(self.mock_config).discover_streams()

# expect valid catalog to be discovered
self.assertEqual(len(catalog), 11, "Total streams from default catalog")
self.assertEqual(len(catalog), 10, "Total streams from default catalog")

@responses.activate
def test_googleads_sync_accessible_customers(self):
Expand All @@ -53,7 +53,7 @@ def test_googleads_sync_accessible_customers(self):

responses.add(
responses.GET,
"https://googleads.googleapis.com/v9/customers:listAccessibleCustomers",
"https://googleads.googleapis.com/v12/customers:listAccessibleCustomers",
json=test_utils.accessible_customer_return_data,
status=200,
)
Expand Down
4 changes: 2 additions & 2 deletions tap_googleads/tests/test_proxy_oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def test_proxy_oauth_discovery(self):
catalog = TapGoogleAds(self.mock_config).discover_streams()

# Assert the correct number of default streams found
self.assertEqual(len(catalog), 11, "Total streams from default catalog")
self.assertEqual(len(catalog), 10, "Total streams from default catalog")

@responses.activate
def test_proxy_oauth_refresh(self):
Expand All @@ -51,7 +51,7 @@ def test_proxy_oauth_refresh(self):

responses.add(
responses.GET,
"https://googleads.googleapis.com/v9/customers:listAccessibleCustomers",
"https://googleads.googleapis.com/v12/customers:listAccessibleCustomers",
json=test_utils.accessible_customer_return_data,
status=200,
)
Expand Down

0 comments on commit 0a0f70c

Please sign in to comment.