@@ -252,6 +252,7 @@ def test_executemany(self):
252252
253253 def test_executemany_comment (self ):
254254 connect_module = mock .MagicMock ()
255+ connect_module .__name__ = mock .MagicMock ()
255256 connect_module .__version__ = mock .MagicMock ()
256257 connect_module .__libpq_version__ = 123
257258 connect_module .apilevel = 123
@@ -260,7 +261,7 @@ def test_executemany_comment(self):
260261
261262 db_integration = dbapi .DatabaseApiIntegration (
262263 "testname" ,
263- "testcomponent " ,
264+ "postgresql " ,
264265 enable_commenter = True ,
265266 commenter_options = {"db_driver" : False , "dbapi_level" : False },
266267 connect_module = connect_module ,
@@ -277,6 +278,7 @@ def test_executemany_comment(self):
277278
278279 def test_compatible_build_version_psycopg_psycopg2_libpq (self ):
279280 connect_module = mock .MagicMock ()
281+ connect_module .__name__ = mock .MagicMock ()
280282 connect_module .__version__ = mock .MagicMock ()
281283 connect_module .pq = mock .MagicMock ()
282284 connect_module .pq .__build_version__ = 123
@@ -286,7 +288,7 @@ def test_compatible_build_version_psycopg_psycopg2_libpq(self):
286288
287289 db_integration = dbapi .DatabaseApiIntegration (
288290 "testname" ,
289- "testcomponent " ,
291+ "postgresql " ,
290292 enable_commenter = True ,
291293 commenter_options = {"db_driver" : False , "dbapi_level" : False },
292294 connect_module = connect_module ,
@@ -303,6 +305,7 @@ def test_compatible_build_version_psycopg_psycopg2_libpq(self):
303305
304306 def test_executemany_flask_integration_comment (self ):
305307 connect_module = mock .MagicMock ()
308+ connect_module .__name__ = mock .MagicMock ()
306309 connect_module .__version__ = mock .MagicMock ()
307310 connect_module .__libpq_version__ = 123
308311 connect_module .apilevel = 123
@@ -311,7 +314,7 @@ def test_executemany_flask_integration_comment(self):
311314
312315 db_integration = dbapi .DatabaseApiIntegration (
313316 "testname" ,
314- "testcomponent " ,
317+ "postgresql " ,
315318 enable_commenter = True ,
316319 commenter_options = {"db_driver" : False , "dbapi_level" : False },
317320 connect_module = connect_module ,
0 commit comments