Skip to content

Commit b2bf8c4

Browse files
committed
update mdviewer test to click on https link
1 parent 7d99486 commit b2bf8c4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_markdownviewer.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
TEST_MARKDOWN = """\
1313
* [First]({{file}}#first)
1414
* [Second](#second)
15+
* [GitHub](https://github.com/textualize/textual/)
1516
1617
# First
1718
@@ -37,7 +38,7 @@ async def on_mount(self) -> None:
3738
await self.query_one(MarkdownViewer).go(self.markdown_file)
3839

3940

40-
@pytest.mark.parametrize("link", [0, 1])
41+
@pytest.mark.parametrize("link", [0, 1, 2])
4142
async def test_markdown_file_viewer_anchor_link(tmp_path, link: int) -> None:
4243
"""Test https://github.com/Textualize/textual/issues/3094"""
4344
async with MarkdownFileViewerApp(Path(tmp_path) / "test.md").run_test() as pilot:
@@ -59,7 +60,7 @@ async def on_mount(self) -> None:
5960
self.query_one(MarkdownViewer).show_table_of_contents = False
6061

6162

62-
@pytest.mark.parametrize("link", [0, 1])
63+
@pytest.mark.parametrize("link", [0, 1, 2])
6364
async def test_markdown_string_viewer_anchor_link(link: int) -> None:
6465
"""Test https://github.com/Textualize/textual/issues/3094
6566

0 commit comments

Comments
 (0)