17 lines
400 B
Python
17 lines
400 B
Python
from app import app
|
|
|
|
|
|
def main() -> None:
|
|
client = app.test_client()
|
|
health = client.get("/health")
|
|
assert health.status_code == 200, health.data
|
|
login = client.get("/login")
|
|
assert login.status_code == 200, login.data
|
|
print("[正常] /health")
|
|
print("[正常] /login")
|
|
print("注意:此測試不連接實際會員資料。")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|