diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index ac5318eb..00000000 --- a/tests/__init__.py +++ /dev/null @@ -1,11 +0,0 @@ -# -*- coding: utf-8 -*-# -# ------------------------------------------------------------------------------- -# Name: __init__.py.py -# Description: -# Author: xaoyaoo -# Date: 2023/10/15 -# ------------------------------------------------------------------------------- - - -if __name__ == '__main__': - pass diff --git a/tests/flassk_demo.py b/tests/flassk_demo.py deleted file mode 100644 index d85a0418..00000000 --- a/tests/flassk_demo.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*-# -# ------------------------------------------------------------------------------- -# Name: flassk_demo.py -# Description: -# Author: xaoyaoo -# Date: 2023/12/11 -# ------------------------------------------------------------------------------- -from flask import Flask, jsonify - -app = Flask(__name__) - - -@app.route('/api/demo', methods=["get",'POST']) -def demo(): - # 模拟不同的API情况 - # 0: 请求成功 - r_data = { - 'code': 0, - 'body': { - 'message': 'Success!', - 'data': { - 'key': 'value' - } - }, - 'msg': 'success', - 'extra': {} - } - return jsonify(r_data) - -if __name__ == '__main__': - app.run(debug=True)