Allow having multiple internal comments on a request

This commit is contained in:
Patrick Smith
2018-09-24 13:26:56 -04:00
committed by Andrew Croce
parent dbe1c0ff5b
commit 0f14eabc44
3 changed files with 10 additions and 11 deletions

View File

@@ -223,10 +223,13 @@ def test_request_changes_to_financial_verification_info():
assert current_review.fname_mao == review_data["fname_mao"]
def test_update_internal_comments():
def test_add_internal_comment():
request = RequestFactory.create()
ccpo = UserFactory.from_atat_role("ccpo")
request = Requests.update_internal_comments(ccpo, request, "this is my comment")
assert len(request.internal_comments) == 0
assert request.internal_comments.text == "this is my comment"
request = Requests.add_internal_comment(ccpo, request, "this is my comment")
assert len(request.internal_comments) == 1
assert request.internal_comments[0].text == "this is my comment"