style: auto-fix linting issues
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
8734f5a0f8
commit
f530a1e562
1 changed files with 3 additions and 6 deletions
|
|
@ -10,6 +10,7 @@ to grab a separate connection. With thread_sensitive=True, connections are prope
|
||||||
Bug trace IDs: a0d8dab6-6524-47dc-9c82-5fa92e6390fb, 62f5c35b-7161-4ab0-958a-4865231f5188
|
Bug trace IDs: a0d8dab6-6524-47dc-9c82-5fa92e6390fb, 62f5c35b-7161-4ab0-958a-4865231f5188
|
||||||
Error: psycopg_pool.PoolTimeout: couldn't get a connection after 30.00 sec
|
Error: psycopg_pool.PoolTimeout: couldn't get a connection after 30.00 sec
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import ast
|
import ast
|
||||||
import inspect
|
import inspect
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
@ -59,9 +60,7 @@ def test_log_features_uses_thread_sensitive_true():
|
||||||
|
|
||||||
assert sync_to_async_decorator is not None, (
|
assert sync_to_async_decorator is not None, (
|
||||||
"log_features should be decorated with @sync_to_async. "
|
"log_features should be decorated with @sync_to_async. "
|
||||||
"Decorators found: " + ", ".join(
|
"Decorators found: " + ", ".join(ast.unparse(d) for d in log_features_func.decorator_list)
|
||||||
ast.unparse(d) for d in log_features_func.decorator_list
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Check the keyword arguments
|
# Check the keyword arguments
|
||||||
|
|
@ -84,6 +83,4 @@ def test_log_features_uses_thread_sensitive_true():
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
# If it's not a constant, fail with a clear message
|
# If it's not a constant, fail with a clear message
|
||||||
assert False, (
|
assert False, f"thread_sensitive should be a boolean constant True, got {ast.unparse(thread_sensitive_arg)}"
|
||||||
f"thread_sensitive should be a boolean constant True, got {ast.unparse(thread_sensitive_arg)}"
|
|
||||||
)
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue