From 1a10358d9ec2ff233ea00970c315a452880acf39 Mon Sep 17 00:00:00 2001 From: btowles Date: Thu, 28 Sep 2023 15:35:23 +0000 Subject: [PATCH] Two new missing fields for all-fields test --- tests/test_all_fields.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/test_all_fields.py b/tests/test_all_fields.py index 9c0fe12b..a8fcfc6d 100644 --- a/tests/test_all_fields.py +++ b/tests/test_all_fields.py @@ -47,10 +47,13 @@ 'effective_at', 'from_invoice', 'latest_revision', + 'rendering', 'shipping_cost', 'shipping_details', }, - 'payment_intents': set() + 'payment_intents': { + 'payment_method_configuration_details', + }, } # we have observed that the SDK object creation returns some new fields intermittently, which are not present in the schema @@ -493,7 +496,9 @@ def all_fields_test(self, streams_to_test): adjusted_actual_keys = adjusted_actual_keys.union({'subscription_item'}) # BUG_13666 # Verify the expected_keys is a subset of the actual_keys - self.assertTrue(adjusted_expected_keys.issubset(adjusted_actual_keys), msg=f"{adjusted_expected_keys} is not a subset of {adjusted_actual_keys}") + message = f"{adjusted_expected_keys} is not a subset of {adjusted_actual_keys}" + self.assertTrue(adjusted_expected_keys.issubset(adjusted_actual_keys), + msg = message) # verify the missing fields from KNOWN_MISSING_FIELDS are always missing (stability check) self.assertSetEqual(actual_records_keys.difference(KNOWN_MISSING_FIELDS.get(stream, set())), actual_records_keys)