mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-27 00:58:13 +00:00
fix: Respect use_system_prompt in Converter regeneration
Fixes #2571 Co-authored-by: Devin AI <devin-ai-integration[bot]@users.noreply.github.com> Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -170,7 +170,7 @@ def test_fingerprint_from_dict():
|
||||
fingerprint_dict = {
|
||||
"uuid_str": uuid_str,
|
||||
"created_at": created_at_iso,
|
||||
"metadata": metadata
|
||||
"metadata": metadata,
|
||||
}
|
||||
|
||||
fingerprint = Fingerprint.from_dict(fingerprint_dict)
|
||||
@@ -207,11 +207,7 @@ def test_invalid_uuid_str():
|
||||
uuid_str = "not-a-valid-uuid"
|
||||
created_at = datetime.now().isoformat()
|
||||
|
||||
fingerprint_dict = {
|
||||
"uuid_str": uuid_str,
|
||||
"created_at": created_at,
|
||||
"metadata": {}
|
||||
}
|
||||
fingerprint_dict = {"uuid_str": uuid_str, "created_at": created_at, "metadata": {}}
|
||||
|
||||
# The Fingerprint.from_dict method accepts even invalid UUIDs
|
||||
# This seems to be the current behavior
|
||||
@@ -243,7 +239,7 @@ def test_fingerprint_metadata_mutation():
|
||||
expected_metadata = {
|
||||
"version": "1.0",
|
||||
"status": "published",
|
||||
"author": "Test Author"
|
||||
"author": "Test Author",
|
||||
}
|
||||
assert fingerprint.metadata == expected_metadata
|
||||
|
||||
@@ -260,4 +256,4 @@ def test_fingerprint_metadata_mutation():
|
||||
|
||||
# Ensure immutable fields remain unchanged
|
||||
assert fingerprint.uuid_str == uuid_str
|
||||
assert fingerprint.created_at == created_at
|
||||
assert fingerprint.created_at == created_at
|
||||
|
||||
Reference in New Issue
Block a user