Skip to content

Commit e38cc3a

Browse files
committed
fix upload style - lint
1 parent 4341cb7 commit e38cc3a

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

components/dash-core-components/tests/integration/upload/test_children_accept_any_component.py

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,32 @@ def test_upca001_upload_children_gallery(dash_dcc):
2828
"textAlign": "center",
2929
},
3030
),
31-
dcc.Upload("upload", disabled=True, className_disabled="upload-disabled", id="upload"),
32-
dcc.Upload("upload", disabled=True, id="upload-no-className")
31+
dcc.Upload(
32+
"upload",
33+
disabled=True,
34+
className_disabled="upload-disabled",
35+
id="upload",
36+
),
37+
dcc.Upload("upload", disabled=True, id="upload-no-className"),
3338
]
3439
)
3540
dash_dcc.start_server(app)
3641
time.sleep(0.5)
3742
dash_dcc.percy_snapshot("upca001 children gallery")
3843

39-
first_child = dash_dcc.find_element("#upload").find_element_by_css_selector(":first-child")
44+
first_child = dash_dcc.find_element("#upload").find_element_by_css_selector(
45+
":first-child"
46+
)
4047
# Check that there is no default style since className is specified
4148
style = first_child.get_attribute("style")
42-
assert "opacity: 0.5" not in style
49+
assert "opacity: 0.5" not in style
4350

44-
first_child = dash_dcc.find_element("#upload-no-className").find_element_by_css_selector(":first-child")
51+
first_child = dash_dcc.find_element(
52+
"#upload-no-className"
53+
).find_element_by_css_selector(":first-child")
4554

4655
# Check that there is default style since no className is specified
4756
style = first_child.get_attribute("style")
48-
assert "opacity: 0.5" in style
57+
assert "opacity: 0.5" in style
4958

5059
assert dash_dcc.get_logs() == []

0 commit comments

Comments
 (0)