Skip to content

Commit

Permalink
Moved the changes to client.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bhuvana-talend committed Oct 25, 2023
1 parent f67f2f0 commit be4b499
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/test_hubspot_start_date.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,13 @@ def setUp(self):
streams_under_test = self.expected_streams() - {'email_events'} # we get this for free with subscription_changes
self.my_start_date = self.get_properties()['start_date']
self.test_client = TestClient(self.my_start_date)

self.page_size = dict()
for stream in streams_under_test:
#self.page_size[stream] = self.expected_metadata().get(stream).get('expected_page_size')
if stream == 'contacts_by_company':
companies_records = self.test_client.read('companies', self.expected_page_limits().get(stream), since=self.my_start_date)
companies_records = self.test_client.read('companies', since=self.my_start_date)
company_ids = [company['companyId'] for company in companies_records]
self.test_client.create(stream, company_ids)
else:
self.test_client.create(stream )
self.test_client.create(stream)

def expected_streams(self):
"""
Expand Down

0 comments on commit be4b499

Please sign in to comment.