Skip to content

Commit

Permalink
Removed extra spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
bhuvana-talend committed Sep 1, 2023
1 parent 949fa1a commit 245e56a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions tests/test_salesforce_api_per_run_quota.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def name():
return "tt_sf_api_quota"

def streams_to_test(self):
return self.expected_streams().difference( self.streams_to_exclude )
return self.expected_streams().difference(self.streams_to_exclude)

@staticmethod
def streams_to_selected_fields():
Expand All @@ -57,9 +57,9 @@ def test_api_per_run_quota(self):

# Run a check job using orchestrator (discovery)
with self.assertRaises(Exception) as ex:
found_catalogs = self.run_and_verify_check_mode( conn_id)
found_catalogs = self.run_and_verify_check_mode(conn_id)

self.assertIn(expected_total_quota_error, str(ex.exception) )
self.assertIn(expected_total_quota_error, str(ex.exception))

# table and field selection
test_catalogs = [catalog for catalog in found_catalogs
Expand All @@ -71,5 +71,5 @@ def test_api_per_run_quota(self):
with self.assertRaises(Exception) as ex:
record_count_by_stream = self.run_and_verify_sync_mode(conn_id)

self.assertIn(expected_per_run_error, str(ex.exception) )
self.assertIn(expected_per_run_error, str(ex.exception))

8 changes: 4 additions & 4 deletions tests/test_salesforce_api_total_quota.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from tap_tester import runner, menagerie, LOGGER, connections


class SFAPIQuota( SFBaseTest):
class SFAPIQuota(SFBaseTest):
"""
https://jira.talendforge.org/browse/TDL-23431
This testcase makes sure we are able to configure the tap with specific
Expand Down Expand Up @@ -38,7 +38,7 @@ def name():
return "tt_sf_api_quota_total"

def streams_to_test(self):
return self.expected_streams().difference( self.streams_to_exclude )
return self.expected_streams().difference(self.streams_to_exclude)

def test_api_total_quota(self):
"""
Expand All @@ -51,7 +51,7 @@ def test_api_total_quota(self):
# run check mode
# Run a check job using orchestrator (discovery)
with self.assertRaises(Exception) as ex:
check_job_name = self.run_and_verify_check_mode( conn_id)
check_job_name = self.run_and_verify_check_mode(conn_id)

self.assertIn(expected_total_quota_error, str(ex.exception) )
self.assertIn(expected_total_quota_error, str(ex.exception))

0 comments on commit 245e56a

Please sign in to comment.