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/auth
-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
..
__init__.py test: add comprehensive API key authentication service tests (#22572) 7 months ago
test_api_key_auth_base.py test: add comprehensive unit tests for auth service module (#22662) 7 months ago
test_api_key_auth_factory.py test: add comprehensive unit tests for auth service module (#22662) 7 months ago
test_api_key_auth_service.py fix: Fix failing unit tests after ORM query refactoring 7 months ago
test_auth_integration.py fix: Fix failing unit tests after ORM query refactoring 7 months ago
test_auth_type.py test: add comprehensive unit tests for AuthType (#22742) 7 months ago
test_firecrawl_auth.py test: add comprehensive unit tests for Firecrawl and Watercrawl auth providers (#22705) 7 months ago
test_jina_auth.py test: add comprehensive unit tests for auth service module (#22662) 7 months ago
test_watercrawl_auth.py test: add comprehensive unit tests for Firecrawl and Watercrawl auth providers (#22705) 7 months ago