diff --git a/sympy_bot/tests/test_webapp.py b/sympy_bot/tests/test_webapp.py index 8a5a455..9ef0575 100644 --- a/sympy_bot/tests/test_webapp.py +++ b/sympy_bot/tests/test_webapp.py @@ -166,7 +166,7 @@ def _event(data): """ -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). @@ -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': { @@ -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': { @@ -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, }, } @@ -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 @@ -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': { @@ -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, }, } @@ -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': { @@ -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, }, } @@ -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 @@ -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': { @@ -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, }, } @@ -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': { @@ -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': { @@ -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': { @@ -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': {