From 8392924fbdc8f831999a27d72219e2e7224e4f5d Mon Sep 17 00:00:00 2001 From: prklm10 Date: Thu, 28 Mar 2024 12:41:34 +0530 Subject: [PATCH] keeping names consistent --- percy/lib/cli_wrapper.py | 10 ++++++---- percy/providers/generic_provider.py | 5 +++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/percy/lib/cli_wrapper.py b/percy/lib/cli_wrapper.py index 15daeaa..a580066 100644 --- a/percy/lib/cli_wrapper.py +++ b/percy/lib/cli_wrapper.py @@ -43,10 +43,10 @@ def is_percy_enabled(): return False def post_screenshots(self, name, tag, tiles, external_debug_url=None, - ignored_elements_data=None, considered_elements_data=None, sync=None, test_case=None, th_execution_id=None + ignored_elements_data=None, considered_elements_data=None, sync=None, test_case=None, th_test_case_execution_id=None ): body = self._request_body(name, tag, tiles, external_debug_url, - ignored_elements_data, considered_elements_data, sync, test_case, th_execution_id + ignored_elements_data, considered_elements_data, sync, test_case, th_test_case_execution_id ) body['client_info'] = Environment._get_client_info() @@ -104,7 +104,9 @@ def post_poa_screenshots(self, name, session_id, command_executor_url, capabilit return data.get('data', {}) @staticmethod - def _request_body(name, tag, tiles, external_debug_url, ignored_elements_data, considered_elements_data, sync, test_case, th_execution_id): + def _request_body(name, tag, tiles, external_debug_url, ignored_elements_data, + considered_elements_data, sync, test_case, th_test_case_execution_id + ): tiles = list(map(dict, tiles)) return { "name": name, @@ -115,5 +117,5 @@ def _request_body(name, tag, tiles, external_debug_url, ignored_elements_data, c "considered_elements_data": considered_elements_data, "sync": sync, "test_case": test_case, - "th_test_case_execution_id": th_execution_id + "th_test_case_execution_id": th_test_case_execution_id } diff --git a/percy/providers/generic_provider.py b/percy/providers/generic_provider.py index 37899e6..d1997c1 100644 --- a/percy/providers/generic_provider.py +++ b/percy/providers/generic_provider.py @@ -160,8 +160,9 @@ def get_regions_by_location(self, elements_array, custom_locations): log(f"Values passed in custom ignored region at index: {idx} is not valid") @staticmethod - def _post_screenshots(name, tag, tiles, debug_url, ignored_regions, considered_regions, sync, test_case, th_execution_id): - response = CLIWrapper().post_screenshots(name, tag, tiles, debug_url, ignored_regions, considered_regions, sync, test_case, th_execution_id) + def _post_screenshots(name, tag, tiles, debug_url, ignored_regions, considered_regions, sync, test_case, th_test_case_execution_id): + response = CLIWrapper().post_screenshots(name, tag, tiles, debug_url, ignored_regions, + considered_regions, sync, test_case, th_test_case_execution_id) return response def _write_screenshot(self, png_bytes, directory):