You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gcgj-dify-1.7.0/api/tests/unit_tests
-LAN- f7270d9549
fix: Fix failing unit tests after ORM query refactoring
- Fix double dot issue in _build_from_tool_file extension handling
- Update test mocks to use .where() instead of .filter() to match refactored ORM queries
- Update test mocks to use db.session.scalar instead of db.session.query for single result queries
- Fix mock_tool_file fixture to properly patch db.session.scalar

All 367 tests in factories and services modules now pass.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
7 months ago
..
configs chore: add SQLALCHEMY_POOL_USE_LIFO option and missing SQLALCHEMY_POOL_PRE_PING env default value. (#22371) 7 months ago
controllers test: add comprehensive OAuth authentication unit tests (#22528) 7 months ago
core ctrl f replace 7 months ago
extensions feat: add redis fallback mechanism #21043 (#21044) 7 months ago
factories fix: Fix failing unit tests after ORM query refactoring 7 months ago
libs refactor: centralize email internationalization handling (#22752) 7 months ago
models ).filter( -> ).where( 7 months ago
oss chore(lint): correct allowed-unused-imports settings for cleanup unused imports in tests (#11922) 1 year ago
repositories feat(workflow_cycle_manager): Removes redundant repository methods and adds caching (#22597) 7 months ago
services fix: Fix failing unit tests after ORM query refactoring 7 months ago
utils Mapped column (#22644) 7 months ago
.gitignore Enhance Code Consistency Across Repository with `.editorconfig` (#19023) 9 months ago
__init__.py FEAT: NEW WORKFLOW ENGINE (#3160) 2 years ago
conftest.py fix: resolve Redis mock import error in test configuration (#22663) 7 months ago