Skip to content

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

.

A-Vamshi9afcc054de4c
diff --git a/tests/test_core/test_vulnerabilities/test_debug_access.py b/tests/test_core/test_vulnerabilities/test_debug_access.py
index cea84236..cfbe42f8 100644
--- a/tests/test_core/test_vulnerabilities/test_debug_access.py
+++ b/tests/test_core/test_vulnerabilities/test_debug_access.py
@@ -5,7 +5,7 @@ from deepteam.vulnerabilities.debug_access import DebugAccessType
class TestDebugAccess:
- PURPOSE="purpose"
+ PURPOSE = "purpose"
def test_debug_access_all_types(self):
types = [
@@ -19,7 +19,9 @@ class TestDebugAccess:
)
def test_debug_access_all_types_default(self):
- debug_access = DebugAccess(purpose=TestDebugAccess.PURPOSE, )
+ debug_access = DebugAccess(
+ purpose=TestDebugAccess.PURPOSE,
+ )
assert sorted(type.value for type in debug_access.types) == sorted(
type.value for type in DebugAccessType
)
diff --git a/tests/test_core/test_vulnerabilities/test_shell_injection.py b/tests/test_core/test_vulnerabilities/test_shell_injection.py
index c21fd591..89a06f74 100644
--- a/tests/test_core/test_vulnerabilities/test_shell_injection.py
+++ b/tests/test_core/test_vulnerabilities/test_shell_injection.py
@@ -5,7 +5,7 @@ from deepteam.vulnerabilities.shell_injection import ShellInjectionType
class TestShellInjection:
- PURPOSE="purpose"
+ PURPOSE = "purpose"
def test_shell_injection_all_types(self):
types = [
@@ -13,34 +13,44 @@ class TestShellInjection:
"system_command_execution",
"shell_escape_sequences",
]
- shell_injection = ShellInjection(purpose=TestShellInjection.PURPOSE, types=types)
+ shell_injection = ShellInjection(
+ purpose=TestShellInjection.PURPOSE, types=types
+ )
assert sorted(type.value for type in shell_injection.types) == sorted(
types
)
def test_shell_injection_all_types_default(self):
- shell_injection = ShellInjection(purpose=TestShellInjection.PURPOSE, )
+ shell_injection = ShellInjection(
+ purpose=TestShellInjection.PURPOSE,
+ )
assert sorted(type.value for type in shell_injection.types) == sorted(
type.value for type in ShellInjectionType
)
def test_shell_injection_command_injection(self):
types = ["command_injection"]
- shell_injection = ShellInjection(purpose=TestShellInjection.PURPOSE, types=types)
+ shell_injection = ShellInjection(
+ purpose=TestShellInjection.PURPOSE, types=types
+ )
assert sorted(type.value for type in shell_injection.types) == sorted(
types
)
def test_shell_injection_system_command_execution(self):
types = ["system_command_execution"]
- shell_injection = ShellInjection(purpose=TestShellInjection.PURPOSE, types=types)
+ shell_injection = ShellInjection(
+ purpose=TestShellInjection.PURPOSE, types=types
+ )
assert sorted(type.value for type in shell_injection.types) == sorted(
types
)
def test_shell_injection_shell_escape_sequences(self):
types = ["shell_escape_sequences"]
- shell_injection = ShellInjection(purpose=TestShellInjection.PURPOSE, types=types)
+ shell_injection = ShellInjection(
+ purpose=TestShellInjection.PURPOSE, types=types
+ )
assert sorted(type.value for type in shell_injection.types) == sorted(
types
)
diff --git a/tests/test_core/test_vulnerabilities/test_sql_injection.py b/tests/test_core/test_vulnerabilities/test_sql_injection.py
index a3caaebe..da4b9766 100644
--- a/tests/test_core/test_vulnerabilities/test_sql_injection.py
+++ b/tests/test_core/test_vulnerabilities/test_sql_injection.py
@@ -5,7 +5,7 @@ from deepteam.vulnerabilities.sql_injection import SQLInjectionType
class TestSQLInjection:
- PURPOSE="purpose"
+ PURPOSE = "purpose"
def test_sql_injection_all_types(self):
types = [
@@ -13,34 +13,44 @@ class TestSQLInjection:
"union_based_injection",
"error_based_injection",
]
- sql_injection = SQLInjection(purpose=TestSQLInjection.PURPOSE, types=types)
+ sql_injection = SQLInjection(
+ purpose=TestSQLInjection.PURPOSE, types=types
+ )
assert sorted(type.value for type in sql_injection.types) == sorted(
types
)
def test_sql_injection_all_types_default(self):
- sql_injection = SQLInjection(purpose=TestSQLInjection.PURPOSE, )
+ sql_injection = SQLInjection(
+ purpose=TestSQLInjection.PURPOSE,
+ )
assert sorted(type.value for type in sql_injection.types) == sorted(
type.value for type in SQLInjectionType
)
def test_sql_injection_blind_sql_injection(self):
types = ["blind_sql_injection"]
- sql_injection = SQLInjection(purpose=TestSQLInjection.PURPOSE, types=types)
+ sql_injection = SQLInjection(
+ purpose=TestSQLInjection.PURPOSE, types=types
+ )
assert sorted(type.value for type in sql_injection.types) == sorted(
types
)
def test_sql_injection_union_based_injection(self):
types = ["union_based_injection"]
- sql_injection = SQLInjection(purpose=TestSQLInjection.PURPOSE, types=types)
+ sql_injection = SQLInjection(
+ purpose=TestSQLInjection.PURPOSE, types=types
+ )
assert sorted(type.value for type in sql_injection.types) == sorted(
types
)
def test_sql_injection_error_based_injection(self):
types = ["error_based_injection"]
- sql_injection = SQLInjection(purpose=TestSQLInjection.PURPOSE, types=types)
+ sql_injection = SQLInjection(
+ purpose=TestSQLInjection.PURPOSE, types=types
+ )
assert sorted(type.value for type in sql_injection.types) == sorted(
types
)