Ejemplo n.º 1
0
 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
Ejemplo n.º 2
0
 def test_instantiating_client_requires_api_key(self):
     self.assertRaises(ValueError, lambda: delighted.Client())
     delighted.Client(api_key='abc123')
Ejemplo n.º 3
0
 def test_retrieving_metrics_other_client(self):
     client = delighted.Client(api_key='example')
     self.check_retrieving_metrics(client=client)
Ejemplo n.º 4
0
 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)