feat: 新增接口22生发控制与测试页
This commit is contained in:
@@ -2,11 +2,15 @@
|
||||
import asyncio
|
||||
import importlib
|
||||
|
||||
import pytest
|
||||
from starlette.requests import Request
|
||||
|
||||
|
||||
def test_legacy_hairline_forwarding(monkeypatch):
|
||||
name, path = "hairline_generate", "/api/v1/hairline/generate"
|
||||
@pytest.mark.parametrize(("name", "path"), [
|
||||
("hairline_generate", "/api/v1/hairline/generate"),
|
||||
("hair_grow_22", "/api/v1/hair/grow-22"),
|
||||
])
|
||||
def test_hairline_forwarding(monkeypatch, name, path):
|
||||
gateway = importlib.import_module("gateway.app")
|
||||
request = Request({"type": "http", "method": "POST", "path": path, "headers": []})
|
||||
calls = []
|
||||
|
||||
Reference in New Issue
Block a user