Skip to content

Commit ee53c83

Browse files
Merge pull request #189 from adamtheturtle/line-none
Use patterns in expected messages
2 parents b4a54c5 + 81b9073 commit ee53c83

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_integration.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,9 +1331,9 @@ def test_table_cell_non_paragraph_error(
13311331
"""
13321332

13331333
expected_message = (
1334-
"Notion table cells can only contain paragraph content. "
1335-
"Found non-paragraph nodes: bullet_list on line None "
1336-
"in None\\."
1334+
r"Notion table cells can only contain paragraph content. "
1335+
r"Found non-paragraph nodes: bullet_list on line None "
1336+
r"in None.$"
13371337
)
13381338
with pytest.raises(expected_exception=ValueError, match=expected_message):
13391339
_assert_rst_converts_to_notion_objects(
@@ -1501,8 +1501,8 @@ def test_heading_level_4_error(
15011501
"""
15021502

15031503
expected_message = (
1504-
"Notion only supports heading levels 1-3, but found heading level 4 "
1505-
"on line 11."
1504+
r"Notion only supports heading levels 1-3, but found heading level 4 "
1505+
r"on line 11.$"
15061506
)
15071507
with pytest.raises(
15081508
expected_exception=ValueError,

0 commit comments

Comments
 (0)