Record references link to what they cite, by title #223
@@ -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()),
|
||||
|
||||
Reference in New Issue
Block a user