Skip to content

Commit

Permalink
Rename comment_body to release_notes_comment_body in test_webapp.py
Browse files Browse the repository at this point in the history
  • Loading branch information
asmeurer committed Mar 5, 2020
1 parent 75f8f72 commit ccf9b8f
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions sympy_bot/tests/test_webapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def _event(data):
<!-- END RELEASE NOTES -->
"""

comment_body = """\
release_notes_comment_body = """\
:white_check_mark:
Hi, I am the [SymPy bot](https://github.com/sympy/sympy-bot) (version not found!). I'm here to help you write a release notes entry. Please read the [guide on how to write release notes](https://github.com/sympy/sympy/wiki/Writing-Release-Notes).
Expand Down Expand Up @@ -459,7 +459,7 @@ async def test_status_good_existing_comment(action):
'login': 'sympy-bot',
},
'url': existing_comment_url,
'body': comment_body,
'body': release_notes_comment_body,
},
{
'user': {
Expand Down Expand Up @@ -627,7 +627,7 @@ def mocked_update_wiki(*args, **kwargs):
'login': 'sympy-bot',
},
'url': existing_comment_url,
'body': comment_body,
'body': release_notes_comment_body,
},
{
'user': {
Expand Down Expand Up @@ -662,7 +662,7 @@ def mocked_update_wiki(*args, **kwargs):
patch = {
existing_comment_url: {
'html_url': comment_html_url,
'body': comment_body,
'body': release_notes_comment_body,
'url': existing_comment_url,
},
}
Expand Down Expand Up @@ -695,7 +695,7 @@ def mocked_update_wiki(*args, **kwargs):
assert len(patch_data) == 2
assert patch_data[0].keys() == {"body"}
comment = patch_data[0]["body"]
assert comment_body == comment
assert comment == release_notes_comment_body
assert ":white_check_mark:" in comment
assert ":x:" not in comment
assert "new trig solvers" in comment
Expand Down Expand Up @@ -808,7 +808,7 @@ def mocked_update_wiki(*args, **kwargs):
'login': 'sympy-bot',
},
'url': existing_comment_url,
'body': comment_body,
'body': release_notes_comment_body,
},
{
'user': {
Expand Down Expand Up @@ -843,7 +843,7 @@ def mocked_update_wiki(*args, **kwargs):
patch = {
existing_comment_url: {
'html_url': comment_html_url,
'body': comment_body,
'body': release_notes_comment_body,
'url': existing_comment_url,
},
}
Expand Down Expand Up @@ -981,7 +981,7 @@ def mocked_update_wiki(*args, **kwargs):
'login': 'sympy-bot',
},
'url': existing_comment_url,
'body': comment_body,
'body': release_notes_comment_body,
},
{
'user': {
Expand Down Expand Up @@ -1019,7 +1019,7 @@ def mocked_update_wiki(*args, **kwargs):
patch = {
existing_comment_url: {
'html_url': comment_html_url,
'body': comment_body,
'body': release_notes_comment_body,
'url': existing_comment_url,
},
}
Expand Down Expand Up @@ -1069,7 +1069,7 @@ def mocked_update_wiki(*args, **kwargs):
assert len(patch_data) == 1
assert patch_data[0].keys() == {"body"}
comment = patch_data[0]["body"]
assert comment_body == comment
assert comment == release_notes_comment_body
assert ":white_check_mark:" in comment
assert ":x:" not in comment
assert "new trig solvers" in comment
Expand Down Expand Up @@ -1181,7 +1181,7 @@ def mocked_update_wiki(*args, **kwargs):
'login': 'sympy-bot',
},
'url': existing_comment_url,
'body': comment_body,
'body': release_notes_comment_body,
},
{
'user': {
Expand Down Expand Up @@ -1213,7 +1213,7 @@ def mocked_update_wiki(*args, **kwargs):
patch = {
existing_comment_url: {
'html_url': comment_html_url,
'body': comment_body,
'body': release_notes_comment_body,
'url': existing_comment_url,
},
}
Expand Down Expand Up @@ -1501,7 +1501,7 @@ async def test_status_bad_existing_comment(action):
'login': 'sympy-bot',
},
'url': existing_comment_url,
'body': comment_body,
'body': release_notes_comment_body,
},
{
'user': {
Expand Down Expand Up @@ -2458,7 +2458,7 @@ async def test_added_deleted_new_comment(action):
'login': 'sympy-bot',
},
'url': existing_comment_url,
'body': comment_body,
'body': release_notes_comment_body,
},
{
'user': {
Expand Down Expand Up @@ -2693,7 +2693,7 @@ async def test_added_deleted_existing_comment(action):
'login': 'sympy-bot',
},
'url': existing_comment_url,
'body': comment_body,
'body': release_notes_comment_body,
},
{
'user': {
Expand Down Expand Up @@ -2847,7 +2847,7 @@ async def test_added_deleted_remove_existing_comment(action):
'login': 'sympy-bot',
},
'url': existing_comment_url,
'body': comment_body,
'body': release_notes_comment_body,
},
{
'user': {
Expand Down

0 comments on commit ccf9b8f

Please sign in to comment.