Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 19, 2024
1 parent 790f273 commit a37ecb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion vizro-core/tests/e2e/test_component_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
[
Expand Down
7 changes: 4 additions & 3 deletions vizro-core/tests/tests_utils/e2e_asserts.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a37ecb2

Please sign in to comment.