Example #1
0
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))
Example #2
0
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))
Example #3
0
    def leads(self):
        """returns a hubspot3 leads client"""
        from hubspot3.leads import LeadsClient

        return LeadsClient(**self.auth, **self.options)
Example #4
0
 def setUp(self):
     self.client = LeadsClient(**helper.get_options())