From e6135695ed846f4c63abc0d9337e5bde0174dd53 Mon Sep 17 00:00:00 2001 From: IlyaFaer Date: Thu, 28 Dec 2023 10:22:57 +0400 Subject: [PATCH] enable companies' history --- sources/hubspot/__init__.py | 2 +- tests/hubspot/test_hubspot_source.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sources/hubspot/__init__.py b/sources/hubspot/__init__.py index f194e52ec..e0674761b 100644 --- a/sources/hubspot/__init__.py +++ b/sources/hubspot/__init__.py @@ -96,7 +96,7 @@ def companies( yield from crm_objects( "company", api_key, - include_history=False, + include_history=include_history, props=props, include_custom_props=include_custom_props, ) diff --git a/tests/hubspot/test_hubspot_source.py b/tests/hubspot/test_hubspot_source.py index 7c2b3a722..e7c5efc79 100644 --- a/tests/hubspot/test_hubspot_source.py +++ b/tests/hubspot/test_hubspot_source.py @@ -363,6 +363,7 @@ def test_all_resources(destination_name: str) -> None: # Check history tables # NOTE: this value is increasing... maybe we should start testing ranges assert load_table_counts(pipeline, *history_table_names) == { + "companies_property_history": 4018, "contacts_property_history": 5935, "deals_property_history": 5162, }