Update test_app.py
هذا الالتزام موجود في:
14
test_app.py
14
test_app.py
@@ -1,10 +1,8 @@
|
|||||||
from flask import Flask
|
from app import app
|
||||||
|
|
||||||
app = Flask(__name__)
|
def test_homepage():
|
||||||
|
|
||||||
@app.route('/')
|
with app.test_client() as client:
|
||||||
def hello_world():
|
response = client.get('/')
|
||||||
return 'Hello, Worlddddddddddd!!!'
|
assert response.status_code == 200
|
||||||
|
assert b"Hello, Worlddddddddddd!!!" in response.data
|
||||||
if __name__ == '__main__':
|
|
||||||
app.run(debug=True)
|
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم