Skip to content

DeepTeam is a framework to red team LLMs and AI agents.

tests fix

A-Vamshi1203302c6f72
diff --git a/tests/test_core/test_vulnerabilities/test_custom_vulnerability.py b/tests/test_core/test_vulnerabilities/test_custom_vulnerability.py
index 5497a306..5b0f7e3b 100644
--- a/tests/test_core/test_vulnerabilities/test_custom_vulnerability.py
+++ b/tests/test_core/test_vulnerabilities/test_custom_vulnerability.py
@@ -15,7 +15,7 @@ class TestCustomVulnerability:
assert custom_vulnerability.criteria == "Criteria"
assert custom_vulnerability.name == "Name"
assert custom_vulnerability.custom_prompt == "Custom prompt"
- assert custom_vulnerability._get_metric() is not None
+ assert custom_vulnerability._get_metric(None) is not None
assert sorted(
type.value for type in custom_vulnerability.types
) == sorted(["type1", "type2"])