def testUploadAppSource(self): client = AppurifyClient(access_token="authenticated", app_src=__file__, app_src_type='raw', test_type='calabash', name="test_name") app_id = client.uploadApp() self.assertEqual(app_id, "test_app_id", "Should properly fetch web robot for app id")
def testUploadAppNoSourceError(self): client = AppurifyClient(access_token="authenticated", app_src_type='raw', test_type='calabash') with self.assertRaises(AppurifyClientError): client.uploadApp()
def testUploadAppNoSource(self): client = AppurifyClient(access_token="authenticated", test_type='ios_webrobot') app_id = client.uploadApp() self.assertEqual(app_id, "test_app_id", "Should properly fetch web robot for app id")