Skip to content

Commit

Permalink
Fix existing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tammy-baylis-swi committed Oct 9, 2024
1 parent 47cdaa9 commit b9335f0
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ def test_executemany(self):

def test_executemany_comment(self):
connect_module = mock.MagicMock()
connect_module.__name__ = mock.MagicMock()
connect_module.__version__ = mock.MagicMock()
connect_module.__libpq_version__ = 123
connect_module.apilevel = 123
Expand All @@ -260,7 +261,7 @@ def test_executemany_comment(self):

db_integration = dbapi.DatabaseApiIntegration(
"testname",
"testcomponent",
"postgresql",
enable_commenter=True,
commenter_options={"db_driver": False, "dbapi_level": False},
connect_module=connect_module,
Expand All @@ -277,6 +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.__version__ = mock.MagicMock()
connect_module.pq = mock.MagicMock()
connect_module.pq.__build_version__ = 123
Expand All @@ -286,7 +288,7 @@ def test_compatible_build_version_psycopg_psycopg2_libpq(self):

db_integration = dbapi.DatabaseApiIntegration(
"testname",
"testcomponent",
"postgresql",
enable_commenter=True,
commenter_options={"db_driver": False, "dbapi_level": False},
connect_module=connect_module,
Expand All @@ -303,6 +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.__version__ = mock.MagicMock()
connect_module.__libpq_version__ = 123
connect_module.apilevel = 123
Expand All @@ -311,7 +314,7 @@ def test_executemany_flask_integration_comment(self):

db_integration = dbapi.DatabaseApiIntegration(
"testname",
"testcomponent",
"postgresql",
enable_commenter=True,
commenter_options={"db_driver": False, "dbapi_level": False},
connect_module=connect_module,
Expand Down

0 comments on commit b9335f0

Please sign in to comment.