def test_publish_case_timout_reached(self, mock_requests): with self.assertRaises(PublishException): general_information._publish(self.training)
def test_publish_case_success(self, mock_requests): response = general_information._publish(self.training) self.assertIsInstance(response, bool) self.assertTrue(response)
def test_publish_case_not_found_return_false(self, mock_requests): response = general_information._publish(self.training) self.assertIsInstance(response, bool) self.assertFalse(response)