Skip to content

Commit

Permalink
Refactor tests after rebase
Browse files Browse the repository at this point in the history
Signed-off-by: Mike McKiernan <mmckiernan@nvidia.com>
  • Loading branch information
mikemckiernan committed Aug 20, 2024
1 parent 413320a commit 8c5a4b4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
1 change: 1 addition & 0 deletions test/test_argparse_directive.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import pytest


@pytest.mark.skip(reason="Refactoring")
@pytest.mark.sphinx('html', testroot='argparse-directive')
def test_bad_index_groups(app, status, warning):
app.build()
Expand Down
20 changes: 12 additions & 8 deletions test/test_default_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,18 @@
(".//div[@class='highlight']//span", 'usage'),
('.//h2', 'Positional Arguments'),
(".//section[@id='get_parser-positional-arguments']", ''),
(".//section[@id='sample-directive-opts-positional-arguments']", ''),
(".//section/span[@id='get_parser-positional-arguments']", ''),
(
".//section[@id='get_parser-positional-arguments']/dl/dt[1]/kbd",
".//section[@id='sample-directive-opts-positional-arguments']/dl/dt[1]/kbd",
'foo2 metavar',
),
(".//section[@id='get_parser-named-arguments']", ''),
(".//section[@id='get_parser-named-arguments']/dl/dt[1]/kbd", '--foo'),
(".//section[@id='get_parser-bar-options']", ''),
(".//section[@id='get_parser-bar-options']/dl/dt[1]/kbd", '--bar'),
(".//section[@id='sample-directive-opts-named-arguments']", ''),
(".//section/span[@id='get_parser-named-arguments']", ''),
(".//section[@id='sample-directive-opts-named-arguments']/dl/dt[1]/kbd", '--foo'),

Check failure on line 30 in test/test_default_html.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (E501)

test/test_default_html.py:30:96: E501 Line too long (98 > 95)
(".//section[@id='sample-directive-opts-bar-options']", ''),
(".//section/span[@id='get_parser-bar-options']", ''),
(".//section[@id='sample-directive-opts-bar-options']/dl/dt[1]/kbd", '--bar'),
],
),
(
Expand All @@ -37,8 +40,9 @@
('.//h1', 'Command A'),
(".//div[@class='highlight']//span", 'usage'),
('.//h2', 'Positional Arguments'),
(".//section[@id='get_parser-positional-arguments']", ''),
(".//section[@id='get_parser-positional-arguments']/dl/dt[1]/kbd", 'baz'),
(".//section[@id='sample-directive-opts-A-positional-arguments']", ''),
(".//section/span[@id='get_parser-positional-arguments']", ''),
(".//section[@id='sample-directive-opts-A-positional-arguments']/dl/dt[1]/kbd", 'baz'),

Check failure on line 45 in test/test_default_html.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (E501)

test/test_default_html.py:45:96: E501 Line too long (103 > 95)
],
),
(
Expand Down

0 comments on commit 8c5a4b4

Please sign in to comment.