diff --git a/tests/test_record_ref_links.py b/tests/test_record_ref_links.py index 89d90428..942f2ca5 100644 --- a/tests/test_record_ref_links.py +++ b/tests/test_record_ref_links.py @@ -31,7 +31,10 @@ def _refs(notes=(), milestones=(), rules=()): @pytest.mark.parametrize(("text", "expected"), [ ("see #123", _refs(notes={123})), - ("steps #5110–#5119 shipped", _refs(notes={5110, 5119})), + ("shipped #5110–#5119", _refs(notes={5110, 5119})), + # "step" names a position in a plan ("step #3"), the same reading the + # message parser uses, so a #N right after it stays plain. + ("step #3 of the plan", _refs()), ("(#4286) and #4290.", _refs(notes={4286, 4290})), ("#v2 is a tag", _refs()), ("a colour #123abc", _refs()),