Commit Graph

4 Commits (7ef21c516a11571c469fcaddab41203e73ae87be)

Author SHA1 Message Date
DrSmoothl 6378bb2052 fix Ruff 2026-02-21 16:29:30 +08:00
DrSmoothl eaef7f0e98 Ruff Format 2026-02-21 16:24:24 +08:00
DrSmoothl f97c24bf9e
test(webui): add pytest tests for emoji, jargon, expression routes
- test_emoji_routes.py: 21 tests covering list/get/update/delete/batch operations
- test_jargon_routes.py: 25 tests covering CRUD + stats + chat list (2 skipped due to DB model)
- test_expression_routes.py: 24 tests covering legacy field compatibility + field removal
- All use in-memory SQLite + StaticPool for isolation
- All tests passing (68/68, 2 skipped)
2026-02-17 20:12:57 +08:00
DrSmoothl 4e5d091417
test(webui): add unit tests for ConfigSchemaGenerator
- Test field descriptions from field_docs
- Test json_schema_extra merging
- Test Pydantic constraints mapping
- Test nested model schema handling
- Test fields without extra metadata

All 5 tests passing. Completes Task 7 of webui-config-visualization-refactor plan.
2026-02-17 17:14:48 +08:00