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
Jason f07eb03be8 test: add comprehensive unit tests for Firecrawl and Watercrawl auth providers
- Add test_firecrawl_auth.py with 23 test cases covering:
  - Bearer token authentication validation
  - API key validation and error handling
  - HTTP error responses (402, 409, 500)
  - Network timeouts and connection errors
  - Custom base URL configuration
  - API key security (non-exposure in errors)

- Add test_watercrawl_auth.py with 26 test cases covering:
  - X-API-KEY authentication validation
  - API key validation and error handling
  - HTTP error responses (402, 409, 500)
  - Network timeouts and connection errors
  - URL construction with urljoin
  - API key security (non-exposure in errors)
8 months ago
..
__init__.py test: add comprehensive API key authentication service tests (#22572) 8 months ago
test_api_key_auth_base.py test: add comprehensive unit tests for auth service module (#22662) 8 months ago
test_api_key_auth_factory.py test: add comprehensive unit tests for auth service module (#22662) 8 months ago
test_api_key_auth_service.py test: add comprehensive API key authentication service tests (#22572) 8 months ago
test_firecrawl_auth.py test: add comprehensive unit tests for Firecrawl and Watercrawl auth providers 8 months ago
test_jina_auth.py test: add comprehensive unit tests for auth service module (#22662) 8 months ago
test_watercrawl_auth.py test: add comprehensive unit tests for Firecrawl and Watercrawl auth providers 8 months ago