From 0ca7077359457c8f8a6c248bf60fd275615b7214 Mon Sep 17 00:00:00 2001 From: James Biggs Date: Thu, 31 Oct 2024 11:13:49 +0000 Subject: [PATCH] Update image rendition handling in tests --- etna/api/tests/test_pages.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etna/api/tests/test_pages.py b/etna/api/tests/test_pages.py index 2f65bbb54..beae11be0 100644 --- a/etna/api/tests/test_pages.py +++ b/etna/api/tests/test_pages.py @@ -377,6 +377,8 @@ def compare_json(self, path: str, json_file: str): api_data = re.sub(r"0_[a-zA-Z0-9]{6,7}", "0", api_data) expected_data = re.sub(r"e_[a-zA-Z0-9]{6,7}", "e", expected_data) api_data = re.sub(r"e_[a-zA-Z0-9]{6,7}", "e", api_data) + expected_data = re.sub(r"e_[a-zA-Z0-9]{6,7}", "_", expected_data) + api_data = re.sub(r"e_[a-zA-Z0-9]{6,7}", "_", api_data) self.assertEqual(expected_data, api_data)