def testUploadTest(self): client = AppurifyClient(access_token="authenticated", test_src=__file__, test_type="uiautomation", test_src_type='raw') test_id = client.uploadTest('test_app_id') self.assertEqual(test_id, "test_test_id", "Should properly fetch web robot for app id")
def testUploadTestNoSourceError(self): client = AppurifyClient(access_token="authenticated", test_type='uiautomation') with self.assertRaises(AppurifyClientError): app_id = client.uploadTest('test_app_id')
def testUploadTestNoSource(self): client = AppurifyClient(access_token="authenticated", test_type='ios_webrobot') app_id = client.uploadTest('test_app_id') self.assertEqual(app_id, "test_test_id", "Should properly fetch web robot for app id")