Exemplo n.º 1
0
 def test_can_request_running_integration(self):
     b = Integrations(self.settings)
     running = b.get_running_integration()
     self.assertIsNotNone(running)
     self.assertEqual(running[0].bot.name, "Testbots Bot")
Exemplo n.º 2
0
 def test_can_request_new_integration(self):
     b = Integrations(self.settings, "88c98ee21f3895749ec3888b930017be")
     self.assertIsNotNone(b.integrate())
Exemplo n.º 3
0
 def test_can_cancel_integration(self):
     i = Integrations(self.settings, "88c98ee21f3895749ec3888b930017be")
     integration = i.integrate()
     self.assertIsNotNone(integration)
     result = i.cancel_integration(integration.id)
     self.assertTrue(result)
Exemplo n.º 4
0
 def test_can_request_integrations(self):
     b = Integrations(self.settings, "88c98ee21f3895749ec3888b930017be")
     assert len(b.get_all()) == 4
Exemplo n.º 5
0
 def test_can_request_1_integration(self):
     b = Integrations(self.settings, "88c98ee21f3895749ec3888b930017be")
     self.assertEqual(
         b.get_item(item_id="88c98ee21f3895749ec3888b93009ea3").result,
         "succeeded")
Exemplo n.º 6
0
 def test_can_request_running_integration(self):
     b = Integrations(self.settings)
     running = b.get_running_integration()
     self.assertIsNotNone(running)
     self.assertEqual(running[0].bot.name, "Testbots Bot")
Exemplo n.º 7
0
 def test_can_cancel_integration(self):
     i = Integrations(self.settings, "88c98ee21f3895749ec3888b930017be")
     integration = i.integrate()
     self.assertIsNotNone(integration)
     result = i.cancel_integration(integration.id)
     self.assertTrue(result)
Exemplo n.º 8
0
 def test_can_request_new_integration(self):
     b = Integrations(self.settings, "88c98ee21f3895749ec3888b930017be")
     self.assertIsNotNone(b.integrate())
Exemplo n.º 9
0
 def test_can_request_1_integration(self):
     b = Integrations(self.settings, "88c98ee21f3895749ec3888b930017be")
     self.assertEqual(b.get_item(item_id="88c98ee21f3895749ec3888b93009ea3").result,
                      "succeeded")
Exemplo n.º 10
0
 def test_can_request_integrations(self):
     b = Integrations(self.settings, "88c98ee21f3895749ec3888b930017be")
     assert len(b.get_all()) == 4