Skip to content

Commit

Permalink
Fix random image rendition IDs in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Dec 12, 2024
1 parent 39edc11 commit ecc3f82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etna/api/tests/test_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def compare_json(self, path: str, json_file: str):
expected_data = self.replace_placeholders(expected_data)

# Remove random image rendition IDs
regex_start = r"/media/images/[a-zA-Z0-9_]+\.[a-fA-F0-9]{6,8}\."
regex_start = r"/media/images/[a-zA-Z0-9_]+\.([a-fA-F0-9]{6,8}\.)?"
replace_end = "/media/images/image."
expected_data = re.sub(regex_start, replace_end, expected_data)
api_data = re.sub(regex_start, replace_end, api_data)
Expand Down

0 comments on commit ecc3f82

Please sign in to comment.