We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7100d7 commit 8246e84Copy full SHA for 8246e84
tests/test_tui.py
@@ -18,6 +18,20 @@ async def test_browse_plot() -> None:
18
assert pilot.app.query_one("#main-view").current == "plot"
19
20
21
+async def test_theme_switch() -> None:
22
+ async with Browser(
23
+ skhep_testdata.data_path("uproot-Event.root")
24
+ ).run_test() as pilot:
25
+ await pilot.press("down", "down", "down", "enter")
26
+ browser_theme = pilot.app.theme
27
+ plot_theme = pilot.app.theme
28
+ await pilot.press("t")
29
+ new_browser_theme = pilot.app.theme
30
+ new_plot_theme = pilot.app.theme
31
+ assert browser_theme != new_browser_theme
32
+ assert plot_theme != new_plot_theme
33
+
34
35
async def test_browse_empty() -> None:
36
async with Browser(
37
skhep_testdata.data_path("uproot-empty.root")
0 commit comments