Skip to content

Commit

Permalink
update discovery tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alzheltkovskiy-hubspot committed Nov 27, 2024
1 parent bc2ee87 commit 2c2a1a6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/spec/crm/v4/schema/test_v4_associations_schema.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from hubspot import HubSpot
from hubspot.crm.associations.v4.schema import DefinitionsApi
from hubspot.crm.associations.v4.schema import DefinitionsApi, DefinitionConfigurationsApi


def test_is_discoverable():
apis = HubSpot().crm.associations.v4.schema
assert isinstance(apis.definitions_api, DefinitionsApi)
assert isinstance(apis.definition_configurations_api, DefinitionConfigurationsApi)
3 changes: 2 additions & 1 deletion tests/spec/crm/v4/test_v4_associations.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
from hubspot import HubSpot
from hubspot.crm.associations.v4 import BatchApi, BasicApi
from hubspot.crm.associations.v4 import BatchApi, BasicApi, ReportApi


def test_is_discoverable():
apis = HubSpot().crm.associations.v4
assert isinstance(apis.batch_api, BatchApi)
assert isinstance(apis.basic_api, BasicApi)
assert isinstance(apis.report_api, ReportApi)
assert hasattr(apis, "schema")
2 changes: 2 additions & 0 deletions tests/spec/marketing/test_marketing_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from hubspot.marketing.events import (
AttendanceSubscriberStateChangesApi,
BasicApi,
ListAssociationsApi,
ParticipantStateApi,
SettingsApi,
SubscriberStateChangesApi
Expand All @@ -12,6 +13,7 @@ def test_is_discoverable():
apis = HubSpot().marketing.events
assert isinstance(apis.attendance_subscriber_state_changes_api, AttendanceSubscriberStateChangesApi)
assert isinstance(apis.basic_api, BasicApi)
assert isinstance(apis.list_associations_api, ListAssociationsApi)
assert isinstance(apis.participant_state_api, ParticipantStateApi)
assert isinstance(apis.settings_api, SettingsApi)
assert isinstance(apis.subscriber_state_changes_api, SubscriberStateChangesApi)

0 comments on commit 2c2a1a6

Please sign in to comment.