From 4d8bde1f159bd9fb7b93585a26aa253470af037a Mon Sep 17 00:00:00 2001 From: bhtowles Date: Wed, 20 Dec 2023 12:31:11 -0500 Subject: [PATCH] Remove chat_only field from expectations again (#145) --- test/test_all_fields.py | 4 ++-- test/test_lookup_fields.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test_all_fields.py b/test/test_all_fields.py index 5863b9e..4cb248f 100644 --- a/test/test_all_fields.py +++ b/test/test_all_fields.py @@ -72,8 +72,8 @@ def test_run(self): # As we can't generate following fields by zendesk APIs now so expected. if stream == "ticket_fields": expected_all_keys = expected_all_keys - {'system_field_options', 'sub_type_id'} - # elif stream == "users": # field started appearing in syncd records Nov 1, 2023 - # expected_all_keys = expected_all_keys - {'chat_only'} + elif stream == "users": # field appeared in syncd records Nov 1 - Dec 18, 2023 + expected_all_keys = expected_all_keys - {'chat_only'} elif stream == "ticket_metrics": expected_all_keys = expected_all_keys - {'status', 'instance_id', 'metric', 'type', 'time'} elif stream == "talk_phone_numbers": diff --git a/test/test_lookup_fields.py b/test/test_lookup_fields.py index d1e9e08..c039dc0 100644 --- a/test/test_lookup_fields.py +++ b/test/test_lookup_fields.py @@ -45,8 +45,8 @@ def test_run(self): for md_entry in catalog_entry['metadata'] if md_entry['breadcrumb'] != []] fields_from_field_level_md += lookup_fields_map[stream_name] - # if stream_name == "users": # field started appearing in syncd records Nov 1, 2023 - # fields_from_field_level_md.remove("chat_only") + if stream_name == "users": # field appeared in syncd records Nov 1 - Dec 18, 2023 + fields_from_field_level_md.remove("chat_only") stream_to_all_catalog_fields[stream_name] = set(fields_from_field_level_md) self.run_and_verify_sync(conn_id)