mirror of
https://github.com/codeflash-ai/codeflash-internal.git
synced 2026-05-04 18:25:18 +00:00
fix: resolve mypy type errors in test file
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
f530a1e562
commit
8629ac756e
1 changed files with 2 additions and 2 deletions
|
|
@ -16,7 +16,7 @@ import inspect
|
|||
from pathlib import Path
|
||||
|
||||
|
||||
def test_log_features_uses_thread_sensitive_true():
|
||||
def test_log_features_uses_thread_sensitive_true() -> None:
|
||||
"""Test that log_features uses thread_sensitive=True to prevent pool exhaustion.
|
||||
|
||||
This test verifies that the @sync_to_async decorator on log_features
|
||||
|
|
@ -78,7 +78,7 @@ def test_log_features_uses_thread_sensitive_true():
|
|||
# Verify thread_sensitive=True (not False)
|
||||
if isinstance(thread_sensitive_arg, ast.Constant):
|
||||
assert thread_sensitive_arg.value is True, (
|
||||
f"thread_sensitive should be True, got {thread_sensitive_arg.value}. "
|
||||
f"thread_sensitive should be True, got {thread_sensitive_arg.value!r}. "
|
||||
"This causes PostgreSQL connection pool exhaustion!"
|
||||
)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue