mirror of
https://github.com/langgenius/dify.git
synced 2026-02-09 23:20:12 -05:00
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
@@ -295,9 +295,13 @@ class TestAPIBasedExtensionService:
|
||||
original_name = created_extension.name
|
||||
original_endpoint = created_extension.api_endpoint
|
||||
|
||||
# Update the extension
|
||||
# Update the extension with guaranteed different values
|
||||
new_name = fake.company()
|
||||
# Ensure new endpoint is different from original
|
||||
new_endpoint = f"https://{fake.domain_name()}/api"
|
||||
# If by chance they're the same, generate a new one
|
||||
while new_endpoint == original_endpoint:
|
||||
new_endpoint = f"https://{fake.domain_name()}/api"
|
||||
new_api_key = fake.password(length=20)
|
||||
|
||||
created_extension.name = new_name
|
||||
|
||||
1093
api/tests/unit_tests/services/segment_service.py
Normal file
1093
api/tests/unit_tests/services/segment_service.py
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user