fix: don't include source with issue URL comment

If TODO comment is a suffix to a line of
(executable) source, don't repeat the source
content when inserting the issue URL. But be sure
to still keep the same alignment.

Closes #229
This commit is contained in:
Robert Alonso
2024-11-12 03:38:07 +00:00
parent ff0c64d51e
commit 948c3e0507
4 changed files with 22 additions and 15 deletions

View File

@@ -110,10 +110,6 @@ class IssueUrlInsertionTest(unittest.TestCase):
self._setUp(['test_same_title_in_same_file.diff'])
self._standardTest(5)
# There is a known bug related to this issue, so until it's resolved
# this is an expected failure.
# See #229
@unittest.expectedFailure
def test_comment_suffix_after_source_line(self):
self._setUp(['test_comment_suffix_after_source_line.diff'])
self._standardTest(1)