File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
graphdatascience/tests/unit Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 1+ from unittest import mock
2+
13from pandas import DataFrame
24
35from graphdatascience import ServerVersion
6+ from graphdatascience .arrow_client .authenticated_flight_client import ConnectionInfo
7+ from graphdatascience .arrow_client .v1 .gds_arrow_client import GdsArrowClient
48from graphdatascience .call_parameters import CallParameters
59from graphdatascience .query_runner .session_query_runner import SessionQueryRunner
610from graphdatascience .tests .unit .conftest import CollectingQueryRunner
711
812
9- class FakeArrowClient :
10- def connection_info (self ) -> tuple [str , str ]:
11- return "myHost" , "1234"
13+ class FakeArrowClient (GdsArrowClient ):
14+ def __init__ (self ) -> None :
15+ super ().__init__ (flight_client = mock .Mock (spec = GdsArrowClient ))
16+
17+ def advertised_connection_info (self ) -> ConnectionInfo :
18+ return ConnectionInfo ("myHost" , 1234 , encrypted = False )
1219
1320 def request_token (self ) -> str :
1421 return "myToken"
You can’t perform that action at this time.
0 commit comments