support: Mention % in attach discount success message.

This commit is contained in:
Vishnu KS
2020-12-04 19:46:40 +05:30
committed by Tim Abbott
parent bd2642a7b8
commit 7b2f16bc5c
2 changed files with 3 additions and 4 deletions

View File

@@ -646,7 +646,7 @@ class TestSupportEndpoint(ZulipTestCase):
with mock.patch("analytics.views.attach_discount_to_realm") as m:
result = self.client_post("/activity/support", {"realm_id": f"{lear_realm.id}", "discount": "25"})
m.assert_called_once_with(get_realm("lear"), 25)
self.assert_in_success_response(["Discount of lear changed to 25 from None"], result)
self.assert_in_success_response(["Discount of lear changed to 25% from 0%"], result)
def test_change_sponsorship_status(self) -> None:
lear_realm = get_realm("lear")