Skip to content

Commit 6a8e962

Browse files
Fix test
1 parent 3b383cd commit 6a8e962

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

instrumentation/opentelemetry-instrumentation-dbapi/tests/test_dbapi_integration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def test_executemany_comment(self):
277277
cursor.query,
278278
r"Select 1 /\*dbapi_threadsafety=123,driver_paramstyle='test',libpq_version=123,traceparent='\d{1,2}-[a-zA-Z0-9_]{32}-[a-zA-Z0-9_]{16}-\d{1,2}'\*/;",
279279
)
280-
280+
281281
def test_executemany_comment_non_pep_249_compliant(self):
282282
class MockConnectModule:
283283
def __getattr__(self, name):
@@ -317,7 +317,7 @@ def test_executemany_comment_matches_db_statement_attribute(self):
317317

318318
db_integration = dbapi.DatabaseApiIntegration(
319319
"testname",
320-
"testcomponent",
320+
"postgresql",
321321
enable_commenter=True,
322322
commenter_options={"db_driver": False, "dbapi_level": False},
323323
connect_module=connect_module,
@@ -344,7 +344,7 @@ def test_executemany_comment_matches_db_statement_attribute(self):
344344
r"[a-zA-Z0-9_]{16}", span.attributes[SpanAttributes.DB_STATEMENT]
345345
).group()
346346
self.assertEqual(cursor_span_id, db_statement_span_id)
347-
347+
348348
def test_compatible_build_version_psycopg_psycopg2_libpq(self):
349349
connect_module = mock.MagicMock()
350350
connect_module.__name__ = "test"

0 commit comments

Comments
 (0)