Skip to content

Commit

Permalink
use "not logs" instead of "logs is None"
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Sep 4, 2024
1 parent 6872b71 commit 4726297
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion crystal_toolkit/apps/examples/tests/test_bandstructure.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ def test_bs(dash_duo: DashDuo) -> None:
# dash_duo.percy_snapshot("example_bsdos_projection_index_2")

logs = dash_duo.get_logs()
assert logs is None, f"Unexpected browser {logs=}"
assert not logs, f"Unexpected browser {logs=}"
6 changes: 3 additions & 3 deletions crystal_toolkit/apps/examples/tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def test_hello_scientist(dash_duo: DashDuo):
dash_duo.percy_snapshot("hello_scientist")

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


def test_hello_structure(dash_duo: DashDuo) -> None:
Expand All @@ -33,7 +33,7 @@ def test_hello_structure(dash_duo: DashDuo) -> None:
dash_duo.percy_snapshot("hello_structure")

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


def test_hello_structure_interactive(dash_duo: DashDuo) -> None:
Expand All @@ -47,4 +47,4 @@ def test_hello_structure_interactive(dash_duo: DashDuo) -> None:
dash_duo.percy_snapshot("hello_structure_interactive_on_click")

logs = dash_duo.get_logs()
assert logs is None, f"Unexpected browser {logs=}"
assert not logs, f"Unexpected browser {logs=}"
2 changes: 1 addition & 1 deletion crystal_toolkit/apps/examples/tests/test_diffraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ def test_diffraction(dash_duo: DashDuo) -> None:
input_nodes[0].send_keys(Keys.ARROW_UP)

logs = dash_duo.get_logs()
assert logs is None, f"Unexpected browser {logs=}"
assert not logs, f"Unexpected browser {logs=}"
2 changes: 1 addition & 1 deletion crystal_toolkit/apps/examples/tests/test_fermi_surface.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ def test_diffraction(dash_duo: DashDuo) -> None:
assert "dash-graph" in node.get_attribute("class")

logs = dash_duo.get_logs()
assert logs is None, f"Unexpected browser {logs=}"
assert not logs, f"Unexpected browser {logs=}"
2 changes: 1 addition & 1 deletion crystal_toolkit/apps/examples/tests/test_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ def test_structure(dash_duo: DashDuo) -> None:
sleep(1)

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

0 comments on commit 4726297

Please sign in to comment.