12 lines
263 B
Python
12 lines
263 B
Python
# -*- coding: utf-8 -*-
|
|
"""
|
|
流程测试前置:健康检查。确保 soul-api 已启动。
|
|
"""
|
|
import requests
|
|
|
|
|
|
def test_health(base_url):
|
|
"""GET /health 健康检查"""
|
|
r = requests.get(f"{base_url}/health", timeout=5)
|
|
assert r.status_code == 200
|