Skip to content

Commit 222e962

Browse files
committed
linting issues
1 parent 985f11b commit 222e962

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
from shiny import App, ui
22

33
app_ui = ui.page_fluid(
4-
ui.input_selectize("test_selectize", "Select", ["Choice 1", "Choice 2"], multiple=True)
4+
ui.input_selectize(
5+
"test_selectize", "Select", ["Choice 1", "Choice 2"], multiple=True
6+
)
57
)
68

9+
710
def server(input, output, session):
811
pass
912

13+
1014
app = App(app_ui, server)
Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
from playwright.sync_api import Page
2+
23
from shiny.playwright import controller
34
from shiny.pytest import create_app_fixture
45
from shiny.run import ShinyAppProc
56

67
app = create_app_fixture("app_selectize.py")
78

9+
810
def test_inputselectize(page: Page, app: ShinyAppProc):
911
page.goto(app.url)
1012

11-
controller.InputSelectize(page, "test_selectize").set(["Choice 1"]) # Add Choice 1 to selections
12-
controller.InputSelectize(page, "test_selectize").set(["Choice 1", "Choice 2"]) # Add Choice 2 to selections
13-
controller.InputSelectize(page, "test_selectize").set([]) # Clear selections
13+
controller.InputSelectize(page, "test_selectize").set(
14+
["Choice 1"]
15+
) # Add Choice 1 to selections
16+
controller.InputSelectize(page, "test_selectize").set(
17+
["Choice 1", "Choice 2"]
18+
) # Add Choice 2 to selections
19+
controller.InputSelectize(page, "test_selectize").set([]) # Clear selections

0 commit comments

Comments
 (0)