Skip to content

Commit

Permalink
Fix test formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Aug 11, 2024
1 parent 999baca commit ed7a980
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_util/test_util_fileutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,9 @@ def excluded(path):
def test_copy_asset_template(app):
app.build(force_all=True)

expected_msg = r"^Writing evaluated template result to [^\n]*\bAPI.html$"
assert re.findall(expected_msg, strip_colors(app.status.getvalue()), flags=re.MULTILINE)
expected_msg = r'^Writing evaluated template result to [^\n]*\bAPI.html$'
output = strip_colors(app.status.getvalue())
assert re.findall(expected_msg, output, flags=re.MULTILINE)


@pytest.mark.sphinx('html', testroot='util-copyasset_overwrite')
Expand Down

0 comments on commit ed7a980

Please sign in to comment.