def test_instantiating_client_requires_api_key(self): original_api_key = delighted.api_key try: delighted.api_key = None self.assertRaises(ValueError, lambda: delighted.Client()) delighted.Client(api_key='abc123') except: delighted.api_key = original_api_key
def test_instantiating_client_requires_api_key(self): self.assertRaises(ValueError, lambda: delighted.Client()) delighted.Client(api_key='abc123')
def test_retrieving_metrics_other_client(self): client = delighted.Client(api_key='example') self.check_retrieving_metrics(client=client)
def test_creating_or_updating_a_person_other_client(self): client = delighted.Client(api_key='example') self.check_creating_or_updating_a_person(client=client)