From 25c1558f951c8eee0da6a8a8ea32fcbee24b1432 Mon Sep 17 00:00:00 2001 From: alexcjohnson Date: Tue, 6 Feb 2024 11:13:13 -0500 Subject: [PATCH] remove python version number from Percy snapshot names --- dash/testing/browser.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/dash/testing/browser.py b/dash/testing/browser.py index de4bbda788..d2751bf6b9 100644 --- a/dash/testing/browser.py +++ b/dash/testing/browser.py @@ -160,10 +160,7 @@ def percy_snapshot( if widths is None: widths = [1280] - # py3.9 hardcoded here to keep snapshot names the same accorss - # future python upgrades - snapshot_name = f"{name} - py3.9" - logger.info("taking snapshot name => %s", snapshot_name) + logger.info("taking snapshot name => %s", name) try: if wait_for_callbacks: # the extra one second sleep adds safe margin in the context @@ -199,7 +196,7 @@ def percy_snapshot( ) try: - self.percy_runner.snapshot(name=snapshot_name, widths=widths) + self.percy_runner.snapshot(name=name, widths=widths) except requests.HTTPError as err: # Ignore retries. if err.request.status_code != 400: