class LeadsClientTest(unittest.TestCase): def setUp(self): self.client = LeadsClient(**helper.get_options()) def tearDown(self): pass def test_camelcased_params(self): in_options = { "sort": "fce.convert_date", "search": "BlahBlah", "time_pivot": "last_modified_at", "is_not_imported": True, } out_options = { "sort": "fce.convertDate", "search": "BlahBlah", "timePivot": "lastModifiedAt", "isNotImported": "true", } self.assertEqual(out_options, self.client.camelcase_search_options(in_options))
class LeadsClientTest(unittest.TestCase): def setUp(self): self.client = LeadsClient(**helper.get_options()) def tearDown(self): pass def test_camelcased_params(self): in_options = { 'sort': 'fce.convert_date', 'search': 'BlahBlah', 'time_pivot': 'last_modified_at', 'is_not_imported': True } out_options = { 'sort': 'fce.convertDate', 'search': 'BlahBlah', 'timePivot': 'lastModifiedAt', 'isNotImported': 'true' } self.assertEqual(out_options, self.client.camelcase_search_options(in_options))
def leads(self): """returns a hubspot3 leads client""" from hubspot3.leads import LeadsClient return LeadsClient(**self.auth, **self.options)
def setUp(self): self.client = LeadsClient(**helper.get_options())