File tree Expand file tree Collapse file tree 6 files changed +14
-21
lines changed
Expand file tree Collapse file tree 6 files changed +14
-21
lines changed Original file line number Diff line number Diff line change 44
55class Discovery (DiscoveryBase ):
66 @property
7- def behavioral_events_tracking_api (self ) -> api_client .BehavioralEventsTrackingApi :
8- return self ._configure_api_client (api_client , "BehavioralEventsTrackingApi " )
7+ def custom_event_data_api (self ) -> api_client .CustomEventDataApi :
8+ return self ._configure_api_client (api_client , "CustomEventDataApi " )
Original file line number Diff line number Diff line change 1+ import hubspot .files as api_client
12from ..discovery_base import DiscoveryBase
23
4+
35class Discovery (DiscoveryBase ):
46 @property
5- def files (self ):
6- from .files .discovery import Discovery as FilesDiscovery
7- return FilesDiscovery (self .config )
7+ def files_api (self ) -> api_client .FilesApi :
8+ return self ._configure_api_client (api_client , "FilesApi" )
9+
10+ @property
11+ def folders_api (self ) -> api_client .FoldersApi :
12+ return self ._configure_api_client (api_client , "FoldersApi" )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11from hubspot import HubSpot
2- from hubspot .events .send import BehavioralEventsTrackingApi
2+ from hubspot .events .send import CustomEventDataApi
33
44
55def test_is_discoverable ():
66 apis = HubSpot ().events .send
7- assert isinstance (apis .behavioral_events_tracking_api , BehavioralEventsTrackingApi )
7+ assert isinstance (apis .custom_event_data_api , CustomEventDataApi )
Original file line number Diff line number Diff line change 11from hubspot import HubSpot
2- from hubspot .files . files import FilesApi , FoldersApi
2+ from hubspot .files import FilesApi , FoldersApi
33
44
55def test_is_discoverable ():
6- apis = HubSpot ().files . files
6+ apis = HubSpot ().files
77 assert isinstance (apis .files_api , FilesApi )
88 assert isinstance (apis .folders_api , FoldersApi )
You can’t perform that action at this time.
0 commit comments