diff --git a/main.py b/main.py index 260025c..0d2db13 100644 --- a/main.py +++ b/main.py @@ -84,6 +84,7 @@ def process_diff(diff, client=Client(), insert_issue_urls=False, parser=TodoPars file_lines.insert(line_number + 1, new_line) with open(raw_issue.file_name, 'w') as issue_file: issue_file.writelines(file_lines) + print('Issue URL successfully inserted', file=output) elif status_code == 200: print(f'Issue updated: #{new_issue_number} @ {client.get_issue_url(new_issue_number)}', file=output) else: diff --git a/tests/test_process_diff.py b/tests/test_process_diff.py index 8fa1dc1..0867716 100644 --- a/tests/test_process_diff.py +++ b/tests/test_process_diff.py @@ -48,7 +48,7 @@ class IssueUrlInsertionTest(unittest.TestCase): # process the diffs process_diff(diff=self.diff_file, insert_issue_urls=True, parser=self.parser, output=output) # make sure the number of issue URL comments inserted is as expected - self.assertEqual(output.getvalue().count('Issue created: #None @ N/A'), 82) + self.assertEqual(output.getvalue().count('Issue URL successfully inserted'), 82) def tearDown(self): # return to original working directory to ensure we don't mess up other tests