-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
87f8bc5
commit a842e93
Showing
4 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import hubspot.cms.pages as api_client | ||
from ...discovery_base import DiscoveryBase | ||
|
||
|
||
class Discovery(DiscoveryBase): | ||
@property | ||
def landing_pages_api(self) -> api_client.LandingPagesApi: | ||
return self._configure_api_client(api_client, "LandingPagesApi") | ||
|
||
@property | ||
def site_pages_api(self) -> api_client.SitePagesApi: | ||
return self._configure_api_client(api_client, "SitePagesApi") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from hubspot import HubSpot | ||
from hubspot.cms.pages import LandingPagesApi, SitePagesApi | ||
|
||
|
||
def test_is_discoverable(): | ||
apis = HubSpot().cms.pages | ||
assert isinstance(apis.landing_pages_api, LandingPagesApi) | ||
assert isinstance(apis.site_pages_api, SitePagesApi) |