From 6a8e9620b1ef391d1b3a8034281e8023c4ba69c7 Mon Sep 17 00:00:00 2001 From: tammy-baylis-swi Date: Mon, 4 Nov 2024 12:18:13 -0800 Subject: [PATCH] Fix test --- .../tests/test_dbapi_integration.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/instrumentation/opentelemetry-instrumentation-dbapi/tests/test_dbapi_integration.py b/instrumentation/opentelemetry-instrumentation-dbapi/tests/test_dbapi_integration.py index 019cf6b4ea..ae595fb430 100644 --- a/instrumentation/opentelemetry-instrumentation-dbapi/tests/test_dbapi_integration.py +++ b/instrumentation/opentelemetry-instrumentation-dbapi/tests/test_dbapi_integration.py @@ -277,7 +277,7 @@ def test_executemany_comment(self): cursor.query, 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}'\*/;", ) - + def test_executemany_comment_non_pep_249_compliant(self): class MockConnectModule: def __getattr__(self, name): @@ -317,7 +317,7 @@ def test_executemany_comment_matches_db_statement_attribute(self): db_integration = dbapi.DatabaseApiIntegration( "testname", - "testcomponent", + "postgresql", enable_commenter=True, commenter_options={"db_driver": False, "dbapi_level": False}, connect_module=connect_module, @@ -344,7 +344,7 @@ def test_executemany_comment_matches_db_statement_attribute(self): r"[a-zA-Z0-9_]{16}", span.attributes[SpanAttributes.DB_STATEMENT] ).group() self.assertEqual(cursor_span_id, db_statement_span_id) - + def test_compatible_build_version_psycopg_psycopg2_libpq(self): connect_module = mock.MagicMock() connect_module.__name__ = "test"