diff --git a/instrumentation/opentelemetry-instrumentation-dbapi/tests/test_dbapi_integration.py b/instrumentation/opentelemetry-instrumentation-dbapi/tests/test_dbapi_integration.py index 3bcfb4421c..bc76eeb578 100644 --- a/instrumentation/opentelemetry-instrumentation-dbapi/tests/test_dbapi_integration.py +++ b/instrumentation/opentelemetry-instrumentation-dbapi/tests/test_dbapi_integration.py @@ -252,7 +252,7 @@ def test_executemany(self): def test_executemany_comment(self): connect_module = mock.MagicMock() - connect_module.__name__ = mock.MagicMock() + connect_module.__name__ = "test" connect_module.__version__ = mock.MagicMock() connect_module.__libpq_version__ = 123 connect_module.apilevel = 123 @@ -278,7 +278,7 @@ def test_executemany_comment(self): def test_compatible_build_version_psycopg_psycopg2_libpq(self): connect_module = mock.MagicMock() - connect_module.__name__ = mock.MagicMock() + connect_module.__name__ = "test" connect_module.__version__ = mock.MagicMock() connect_module.pq = mock.MagicMock() connect_module.pq.__build_version__ = 123 @@ -305,7 +305,7 @@ def test_compatible_build_version_psycopg_psycopg2_libpq(self): def test_executemany_flask_integration_comment(self): connect_module = mock.MagicMock() - connect_module.__name__ = mock.MagicMock() + connect_module.__name__ = "test" connect_module.__version__ = mock.MagicMock() connect_module.__libpq_version__ = 123 connect_module.apilevel = 123