公开数据看板、四位 Key 录入面板、管理后台与三级权限、动态字段配置、 PostgreSQL/SQLite 双支持、数据库备份,以及本版新增的成品图上传与预览。 图片相关: - 录入表单支持相册选图与手机端直接拍照,每条记录最多 6 张 - 浏览器内压缩到最长边 1600 并剥离 EXIF,入库统一为 JPG/PNG - 二进制直接入库,现有备份自动覆盖图片,部署无需新增卷 - 详情页缩略图宫格与全屏 lightbox,公开看板同样可见 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
12 lines
400 B
Python
12 lines
400 B
Python
from app.backup_service import postgres_cli_url
|
|
|
|
|
|
def test_sqlalchemy_postgres_url_is_accepted_by_cli():
|
|
value = "postgresql+psycopg://user:pass@db:5432/laser_data"
|
|
assert postgres_cli_url(value) == "postgresql://user:pass@db:5432/laser_data"
|
|
|
|
|
|
def test_standard_postgres_url_is_unchanged():
|
|
value = "postgresql://user:pass@db:5432/laser_data"
|
|
assert postgres_cli_url(value) == value
|