Skip to content

Commit

Permalink
modifying unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
McKnight-42 committed Oct 23, 2023
1 parent ce59491 commit 6dcb67e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/unit/test_bigquery_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from .utils import (
config_from_parts_or_dicts,
inject_adapter,
mock_connection,
TestAdapterConversions,
)

Expand Down Expand Up @@ -348,8 +349,8 @@ def test_cancel_open_connections_empty(self):

def test_cancel_open_connections_master(self):
adapter = self.get_adapter("oauth")
adapter.connections.thread_connections[0] = object()
self.assertEqual(adapter.cancel_open_connections(), None)
adapter.connections.thread_connections[0] = mock_connection("master")
self.assertEqual(len(list(adapter.cancel_open_connections())), 0)

def test_cancel_open_connections_single(self):
adapter = self.get_adapter("oauth")
Expand Down

0 comments on commit 6dcb67e

Please sign in to comment.