diff --git a/tests/snapshot_tests/__snapshots__/test_snapshots/test_markdown_dark_theme_override.svg b/tests/snapshot_tests/__snapshots__/test_snapshots/test_markdown_dark_theme_override.svg deleted file mode 100644 index b7ddb86911..0000000000 --- a/tests/snapshot_tests/__snapshots__/test_snapshots/test_markdown_dark_theme_override.svg +++ /dev/null @@ -1,154 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - MarkdownThemeSwitcherApp - - - - - - - - - - - -This is a H1 - - -defmain(): -print("Hello world!") - - - - - - - - - - - - - - - - - - - - diff --git a/tests/snapshot_tests/__snapshots__/test_snapshots/test_markdown_light_theme_override.svg b/tests/snapshot_tests/__snapshots__/test_snapshots/test_markdown_light_theme_override.svg deleted file mode 100644 index bea99b82c2..0000000000 --- a/tests/snapshot_tests/__snapshots__/test_snapshots/test_markdown_light_theme_override.svg +++ /dev/null @@ -1,154 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - MarkdownThemeSwitcherApp - - - - - - - - - - - -This is a H1 - - -defmain(): -print("Hello world!") - - - - - - - - - - - - - - - - - - - - diff --git a/tests/snapshot_tests/snapshot_apps/markdown_theme_switcher.py b/tests/snapshot_tests/snapshot_apps/markdown_theme_switcher.py index c71c26b8cb..21f6156412 100644 --- a/tests/snapshot_tests/snapshot_apps/markdown_theme_switcher.py +++ b/tests/snapshot_tests/snapshot_apps/markdown_theme_switcher.py @@ -13,18 +13,8 @@ def main(): class MarkdownThemeSwitcherApp(App[None]): BINDINGS = [ ("t", "toggle_theme"), - ("d", "switch_dark"), - ("l", "switch_light"), ] - def action_switch_dark(self) -> None: - md = self.query_one(Markdown) - md.code_dark_theme = "solarized-dark" - - def action_switch_light(self) -> None: - md = self.query_one(Markdown) - md.code_light_theme = "solarized-light" - def action_toggle_theme(self) -> None: self.theme = "textual-light" if self.theme == "textual-dark" else "textual-dark" diff --git a/tests/snapshot_tests/test_snapshots.py b/tests/snapshot_tests/test_snapshots.py index b399c10147..b1f83e290c 100644 --- a/tests/snapshot_tests/test_snapshots.py +++ b/tests/snapshot_tests/test_snapshots.py @@ -434,18 +434,6 @@ def test_markdown_theme_switching(snap_compare): assert snap_compare(SNAPSHOT_APPS_DIR / "markdown_theme_switcher.py", press=["t"]) -def test_markdown_dark_theme_override(snap_compare): - assert snap_compare( - SNAPSHOT_APPS_DIR / "markdown_theme_switcher.py", press=["d", "wait:100"] - ) - - -def test_markdown_light_theme_override(snap_compare): - assert snap_compare( - SNAPSHOT_APPS_DIR / "markdown_theme_switcher.py", press=["l", "t", "wait:100"] - ) - - def test_checkbox_example(snap_compare): assert snap_compare(WIDGET_EXAMPLES_DIR / "checkbox.py")