diff --git a/superflore/utils.py b/superflore/utils.py index d069e3d6..7e1aed7e 100644 --- a/superflore/utils.py +++ b/superflore/utils.py @@ -50,7 +50,6 @@ def get_pr_text(comment=None): msg = '' if comment: msg += '%s\n' % comment - return msg msg += 'To reproduce this PR, run the following command.\n\n' args = sys.argv args[0] = args[0].split('/')[-1] diff --git a/tests/test_utils.py b/tests/test_utils.py index eb8b69ab..6d5341e0 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -175,7 +175,9 @@ def test_get_pr_text(self): '```\na b c d\n```\n' self.assertEqual(expected, get_pr_text()) # test with an argument - expected = 'sample\n' + expected = 'sample\n'\ + 'To reproduce this PR, run the following command.\n\n'\ + '```\na b c d\n```\n' self.assertEqual(expected, get_pr_text('sample')) def test_cleanup(self):