Skip to content

Commit 4726297

Browse files
committed
use "not logs" instead of "logs is None"
see plotly/dash#2712
1 parent 6872b71 commit 4726297

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

crystal_toolkit/apps/examples/tests/test_bandstructure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ def test_bs(dash_duo: DashDuo) -> None:
3232
# dash_duo.percy_snapshot("example_bsdos_projection_index_2")
3333

3434
logs = dash_duo.get_logs()
35-
assert logs is None, f"Unexpected browser {logs=}"
35+
assert not logs, f"Unexpected browser {logs=}"

crystal_toolkit/apps/examples/tests/test_basic.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def test_hello_scientist(dash_duo: DashDuo):
2222
dash_duo.percy_snapshot("hello_scientist")
2323

2424
logs = dash_duo.get_logs()
25-
assert logs is None, f"Unexpected browser {logs=}"
25+
assert not logs, f"Unexpected browser {logs=}"
2626

2727

2828
def test_hello_structure(dash_duo: DashDuo) -> None:
@@ -33,7 +33,7 @@ def test_hello_structure(dash_duo: DashDuo) -> None:
3333
dash_duo.percy_snapshot("hello_structure")
3434

3535
logs = dash_duo.get_logs()
36-
assert logs is None, f"Unexpected browser {logs=}"
36+
assert not logs, f"Unexpected browser {logs=}"
3737

3838

3939
def test_hello_structure_interactive(dash_duo: DashDuo) -> None:
@@ -47,4 +47,4 @@ def test_hello_structure_interactive(dash_duo: DashDuo) -> None:
4747
dash_duo.percy_snapshot("hello_structure_interactive_on_click")
4848

4949
logs = dash_duo.get_logs()
50-
assert logs is None, f"Unexpected browser {logs=}"
50+
assert not logs, f"Unexpected browser {logs=}"

crystal_toolkit/apps/examples/tests/test_diffraction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ def test_diffraction(dash_duo: DashDuo) -> None:
3131
input_nodes[0].send_keys(Keys.ARROW_UP)
3232

3333
logs = dash_duo.get_logs()
34-
assert logs is None, f"Unexpected browser {logs=}"
34+
assert not logs, f"Unexpected browser {logs=}"

crystal_toolkit/apps/examples/tests/test_fermi_surface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ def test_diffraction(dash_duo: DashDuo) -> None:
1717
assert "dash-graph" in node.get_attribute("class")
1818

1919
logs = dash_duo.get_logs()
20-
assert logs is None, f"Unexpected browser {logs=}"
20+
assert not logs, f"Unexpected browser {logs=}"

crystal_toolkit/apps/examples/tests/test_structure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ def test_structure(dash_duo: DashDuo) -> None:
3636
sleep(1)
3737

3838
logs = dash_duo.get_logs()
39-
assert logs is None, f"Unexpected browser {logs=}"
39+
assert not logs, f"Unexpected browser {logs=}"

0 commit comments

Comments
 (0)