def setUp(self): logging.getLogger("HiveManageTestCase").info("\n") self.app = create_app(mode=HIVE_MODE_TEST) self.app.config['TESTING'] = True self.test_client = self.app.test_client() self.content_type = ("Content-Type", "application/json") self.json_header = [ self.content_type, ] test_common.setup_test_auth_token() self.init_auth() self.did = test_common.get_auth_did() self.app_id = test_common.get_auth_app_did()
def setUp(self): logging.getLogger("HivePaymentTestCase").info("\n") self.app = create_app(mode=HIVE_MODE_TEST) self.app.config['TESTING'] = True self.test_client = self.app.test_client() self.content_type = ("Content-Type", "application/json") self.upload_file_content_type = ("Content-Type", "multipart/form-data") self.json_header = [ self.content_type, ] test_common.setup_test_auth_token() self.init_auth() self.did = test_common.get_auth_did() self.app_id = test_common.get_auth_app_did() self.test_order_id = None