From a37ecb2b32805307a9da4f1f06d1ae19541a8342 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 19 Nov 2024 16:20:22 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- vizro-core/tests/e2e/test_component_library.py | 1 - vizro-core/tests/tests_utils/e2e_asserts.py | 7 ++++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vizro-core/tests/e2e/test_component_library.py b/vizro-core/tests/e2e/test_component_library.py index 1865a63c5..bb1c38793 100644 --- a/vizro-core/tests/e2e/test_component_library.py +++ b/vizro-core/tests/e2e/test_component_library.py @@ -68,7 +68,6 @@ def test_kpi_card_component_library(dash_duo, get_test_name): - app = Dash(__name__, external_stylesheets=[dbc.themes.BOOTSTRAP]) app.layout = dbc.Container( [ diff --git a/vizro-core/tests/tests_utils/e2e_asserts.py b/vizro-core/tests/tests_utils/e2e_asserts.py index 03b188725..95913539e 100644 --- a/vizro-core/tests/tests_utils/e2e_asserts.py +++ b/vizro-core/tests/tests_utils/e2e_asserts.py @@ -1,8 +1,9 @@ +import shutil +from pathlib import Path + import cv2 import imutils -import shutil from hamcrest import assert_that, equal_to -from pathlib import Path def _compare_images(original_image, new_image): @@ -40,7 +41,7 @@ def assert_image_equal(browserdriver, test_image_name): _compare_images(original, new) Path(f"{test_image_name}_branch.png").unlink() except AssertionError as exp: - shutil.copy(f"{test_image_name}_branch.png", base_image_name) + shutil.copy(f"{test_image_name}_branch.png", base_image_name) diff = _create_image_difference(original=new, new=original) cv2.imwrite(f"{test_image_name}_diff_main.png", diff) raise AssertionError("pictures are not the same") from exp