Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix lack of command text in PR's. #150

Merged
merged 1 commit into from
Mar 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion superflore/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 3 additions & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down