- 在文章编辑过程中,实现了自动创建不存在的@提及和#标签的功能,确保它们被添加到相应的数据库中。 - 更新了内容处理逻辑,以利用新创建的提及和标签,从而改善用户体验和内容管理。 - 增强了人物和链接标签创建的后端处理能力,使文章编辑过程中能够实现无缝集成。
18 lines
496 B
Python
18 lines
496 B
Python
# -*- coding: utf-8 -*-
|
|
"""
|
|
小程序公开接口测试。GET /api/miniprogram/config 无需鉴权。
|
|
"""
|
|
import pytest
|
|
import requests
|
|
|
|
|
|
def test_config_public(base_url):
|
|
"""GET /api/miniprogram/config 返回配置"""
|
|
r = requests.get(f"{base_url}/api/miniprogram/config", timeout=10)
|
|
assert r.status_code == 200
|
|
data = r.json()
|
|
assert data.get("success") is True
|
|
assert "prices" in data
|
|
assert "features" in data
|
|
assert "mpConfig" in data or "mp_config" in data
|