Skip to content

Commit f4a5fa1

Browse files
committed
Add additional tests for missing code paths
1 parent 82a5af0 commit f4a5fa1

6 files changed

Lines changed: 767 additions & 2 deletions

File tree

src/flowmapper/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ def read_migration_files(*filepaths: Union[str, Path]) -> List[dict]:
9595

9696

9797
def rm_parentheses_roman_numerals(s: str):
98-
pattern = r"\(\s*([ivxlcdm]+)\s*\)"
99-
return re.sub(pattern, r"\1", s)
98+
pattern = r"\(\s*([ivxlcdmIVXLCDM]+)\s*\)"
99+
return re.sub(pattern, r"\1", s, flags=re.IGNORECASE)
100100

101101

102102
def rm_roman_numerals_ionic_state(s: str):

tests/integration/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
"""Integration tests for flowmapper using real objects."""
2+

0 commit comments

Comments
 (0)