Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 23, 2024
1 parent 9dff714 commit 1250bd0
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions tests/test_needs_filter_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ def test_doc_needs_filter_data_html(test_app):
'<td class="needs_tags"><p>my_tag<em>; </em>current_variant</p></td>'
in index_html
)
assert '<span class="caption-text">Filter code func table with multiple dots filter function path</span>' in filter_code
assert (
'<span class="caption-text">Filter code func table with multiple dots filter function path</span>'
in filter_code
)

# check needflow works
if int(doc_ver.split(".")[1]) >= 18:
Expand All @@ -62,16 +65,22 @@ def test_doc_needs_filter_data_html(test_app):

# check needpie works
assert '<img alt="_images/need_pie_dba00.svg" id="needpie-index-0"' in index_html
assert '<img alt="_images/need_pie_446e9.svg" id="needpie-filter_code-0"' in filter_code
assert '<img alt="_images/need_pie_fac86.svg" id="needpie-filter_code-1"' in filter_code
assert (
'<img alt="_images/need_pie_446e9.svg" id="needpie-filter_code-0"'
in filter_code
)
assert (
'<img alt="_images/need_pie_fac86.svg" id="needpie-filter_code-1"'
in filter_code
)
# check needextend works
assert (
'<span class="needs_tags"><span class="needs_label">tags: </span>'
'<span class="needs_data_container"><span class="needs_data">test_tag_001</span>'
'<span class="needs_spacer">, </span><span class="needs_data">current_variant</span></span>'
in index_html
)


@pytest.mark.parametrize(
"test_app",
Expand Down

0 comments on commit 1250bd0

Please sign in to comment.