Skip to content

Commit db2da89

Browse files
committed
ci: fix merge with master
1 parent 884820d commit db2da89

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/test_fixtures.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""All fixture-based tests for mdformat-footnote."""
22

33
from pathlib import Path
4+
import re
45

56
from fixture_helpers import load_fixtures
67
import mdformat
@@ -10,6 +11,8 @@
1011
def _get_options(filename: str, title: str) -> dict:
1112
"""Determine mdformat options based on fixture file and title."""
1213
if filename == "word_wrap.md":
14+
if match := re.search(r"wrap at (\d+)", title):
15+
return {"wrap": int(match.group(1))}
1316
return {"wrap": 40}
1417
if "keep orphans" in title.lower():
1518
return {"keep_orphans": True}

0 commit comments

Comments
 (0)