File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
instrumentation/opentelemetry-instrumentation-psycopg/tests Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -279,8 +279,7 @@ def test_span_params_attribute(self):
279
279
assert spans_list [0 ].attributes is not None
280
280
self .assertEqual (spans_list [0 ].attributes ["db.statement" ], query )
281
281
self .assertEqual (
282
- spans_list [0 ].attributes ["db.statement.parameters" ],
283
- str (params )
282
+ spans_list [0 ].attributes ["db.statement.parameters" ], str (params )
284
283
)
285
284
286
285
# pylint: disable=unused-argument
@@ -504,7 +503,6 @@ async def test_span_params_attribute(self):
504
503
query = "SELECT * FROM mytable WHERE myparam1 = %s AND myparam2 = %s"
505
504
params = ("test" , 42 )
506
505
async with cnx .cursor () as cursor :
507
-
508
506
await cursor .execute (query , params )
509
507
510
508
spans_list = self .memory_exporter .get_finished_spans ()
@@ -513,8 +511,7 @@ async def test_span_params_attribute(self):
513
511
assert spans_list [0 ].attributes is not None
514
512
self .assertEqual (spans_list [0 ].attributes ["db.statement" ], query )
515
513
self .assertEqual (
516
- spans_list [0 ].attributes ["db.statement.parameters" ],
517
- str (params )
514
+ spans_list [0 ].attributes ["db.statement.parameters" ], str (params )
518
515
)
519
516
520
517
# pylint: disable=unused-argument
You can’t perform that action at this time.
0 commit comments