Beispiel #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")
Beispiel #2
0
 def test_can_request_new_integration(self):
     b = Integrations(self.settings, "88c98ee21f3895749ec3888b930017be")
     self.assertIsNotNone(b.integrate())
Beispiel #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)
Beispiel #4
0
 def test_can_request_integrations(self):
     b = Integrations(self.settings, "88c98ee21f3895749ec3888b930017be")
     assert len(b.get_all()) == 4
Beispiel #5
0
 def test_can_request_1_integration(self):
     b = Integrations(self.settings, "88c98ee21f3895749ec3888b930017be")
     self.assertEqual(
         b.get_item(item_id="88c98ee21f3895749ec3888b93009ea3").result,
         "succeeded")
Beispiel #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")
Beispiel #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)
Beispiel #8
0
 def test_can_request_new_integration(self):
     b = Integrations(self.settings, "88c98ee21f3895749ec3888b930017be")
     self.assertIsNotNone(b.integrate())
Beispiel #9
0
 def test_can_request_1_integration(self):
     b = Integrations(self.settings, "88c98ee21f3895749ec3888b930017be")
     self.assertEqual(b.get_item(item_id="88c98ee21f3895749ec3888b93009ea3").result,
                      "succeeded")
Beispiel #10
0
 def test_can_request_integrations(self):
     b = Integrations(self.settings, "88c98ee21f3895749ec3888b930017be")
     assert len(b.get_all()) == 4