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/services
-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
..
auth fix: Fix failing unit tests after ORM query refactoring 7 months ago
tools refactor: Fix some type error (#22594) 7 months ago
workflow ctrl f replace 7 months ago
__init__.py FEAT: NEW WORKFLOW ENGINE (#3160) 2 years ago
services_test_help.py Add unit test for account service (#22278) 7 months ago
test_account_service.py fix: Fix failing unit tests after ORM query refactoring 7 months ago
test_dataset_permission.py feat: refactor: test_dataset unit tests #21499 (#21502) 7 months ago
test_dataset_service_batch_update_document_status.py feat: refactor: test_dataset unit tests #21499 (#21502) 7 months ago
test_dataset_service_update_dataset.py Fix/replace datetime patterns with naive utc now (#22654) 7 months ago