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 29, 2023
1 parent 8dd6c5f commit 1b0e526
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/widgetastic_patternfly5/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
from .components.forms.form_select import FormSelectOptionDisabled
from .components.forms.form_select import FormSelectOptionNotFound
from .components.forms.radio import Radio
from .components.menus.context_selector import ContextSelector
from .components.menus.dropdown import Dropdown
from .components.menus.dropdown import DropdownDisabled
from .components.menus.dropdown import DropdownItemDisabled
from .components.menus.dropdown import DropdownItemNotFound
from .components.menus.dropdown import GroupDropdown
from .components.menus.context_selector import ContextSelector
from .components.menus.menu import CheckboxMenu
from .components.menus.menu import Menu
from .components.menus.menu import MenuItemDisabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@


class BaseContextSelector:
ITEMS_LOCATOR = ".//ul[@class='pf-v5-c-menu__list' or @class='pf-c-context-selector__menu-list']/li"
ITEMS_LOCATOR = (
".//ul[@class='pf-v5-c-menu__list' or @class='pf-c-context-selector__menu-list']/li"
)
ITEM_LOCATOR = (
".//*[contains(@class, 'pf-c-context-selector__menu-list-item')"
" and normalize-space(.)={}]"
Expand Down
2 changes: 1 addition & 1 deletion testing/components/menus/test_context_selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ def test_contextselector_item_select(view):
assert not view.contextselector.is_open
with pytest.raises(SelectItemNotFound):
view.contextselector.fill("Non existing item")
assert not view.contextselector.is_open
assert not view.contextselector.is_open

0 comments on commit 1b0e526

Please sign in to comment.