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 Dec 13, 2024
1 parent 2ffdbe6 commit 41b6a97
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion vizro-ai/hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ prep-release = [
]
pypath = "hatch run python -c 'import sys; print(sys.executable)'"
test = "pytest tests {args}"
test-e2e-vizro-ai-ui = "pytest -vs --reruns 1 tests/e2e/test_vizro_ai_ui.py --headless {args}"
test-integration = "pytest -vs --reruns 1 tests/integration --headless {args}"
test-score = "pytest -vs --reruns 1 tests/score --headless {args}"
test-unit = "pytest tests/unit {args}"
Expand All @@ -56,7 +57,6 @@ test-unit-coverage = [
"- coverage combine",
"coverage report"
]
test-e2e-vizro-ai-ui = "pytest -vs --reruns 1 tests/e2e/test_vizro_ai_ui.py --headless {args}"
vizro-ai-ui = "python examples/dashboard_ui/app.py &"

[envs.docs]
Expand Down
2 changes: 1 addition & 1 deletion vizro-ai/tests/e2e/conftest.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from datetime import datetime

import pytest
from e2e_asserts import browser_console_warnings_checker
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from e2e_asserts import browser_console_warnings_checker


@pytest.fixture()
Expand Down
2 changes: 1 addition & 1 deletion vizro-ai/tests/e2e/test_vizro_ai_ui.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import os

import pytest
from selenium.common import InvalidSelectorException, TimeoutException
from e2e_waiters import (
wait_for,
webdriver_click_waiter,
webdriver_waiter,
webdriver_waiter_css,
)
from selenium.common import InvalidSelectorException, TimeoutException


@pytest.mark.filterwarnings("ignore:HTTPResponse.getheader():DeprecationWarning")
Expand Down
2 changes: 1 addition & 1 deletion vizro-ai/tests/tests_utils/e2e_asserts.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from hamcrest import any_of, assert_that, contains_string
from e2e_constants import (
INVALID_PROP_ERROR,
REACT_NOT_RECOGNIZE_ERROR,
Expand All @@ -10,6 +9,7 @@
WILLMOUNT_RENAMED_WARNING,
WILLRECEIVEPROPS_RENAMED_WARNING,
)
from hamcrest import any_of, assert_that, contains_string


def browser_console_warnings_checker(log_level, log_levels):
Expand Down
2 changes: 1 addition & 1 deletion vizro-ai/tests/tests_utils/e2e_waiters.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import time

from e2e_constants import TIMEOUT
from selenium.common.exceptions import (
StaleElementReferenceException,
)
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions
from selenium.webdriver.support.wait import WebDriverWait
from e2e_constants import TIMEOUT


def wait_for(condition_function, *args):
Expand Down

0 comments on commit 41b6a97

Please sign in to comment.