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):
279279 assert spans_list [0 ].attributes is not None
280280 self .assertEqual (spans_list [0 ].attributes ["db.statement" ], query )
281281 self .assertEqual (
282- spans_list [0 ].attributes ["db.statement.parameters" ],
283- str (params )
282+ spans_list [0 ].attributes ["db.statement.parameters" ], str (params )
284283 )
285284
286285 # pylint: disable=unused-argument
@@ -504,7 +503,6 @@ async def test_span_params_attribute(self):
504503 query = "SELECT * FROM mytable WHERE myparam1 = %s AND myparam2 = %s"
505504 params = ("test" , 42 )
506505 async with cnx .cursor () as cursor :
507-
508506 await cursor .execute (query , params )
509507
510508 spans_list = self .memory_exporter .get_finished_spans ()
@@ -513,8 +511,7 @@ async def test_span_params_attribute(self):
513511 assert spans_list [0 ].attributes is not None
514512 self .assertEqual (spans_list [0 ].attributes ["db.statement" ], query )
515513 self .assertEqual (
516- spans_list [0 ].attributes ["db.statement.parameters" ],
517- str (params )
514+ spans_list [0 ].attributes ["db.statement.parameters" ], str (params )
518515 )
519516
520517 # pylint: disable=unused-argument
You can’t perform that action at this time.
0 commit comments