Domain method for adding an internal comment

This commit is contained in:
richard-dds
2018-09-11 15:34:24 -04:00
parent 100048afdf
commit 0ddbeaf176
2 changed files with 20 additions and 0 deletions

View File

@@ -221,3 +221,12 @@ def test_request_changes_to_financial_verification_info():
assert request.status == RequestStatus.CHANGES_REQUESTED_TO_FINVER
current_review = request.latest_status.review
assert current_review.fname_mao == review_data["fname_mao"]
def test_update_internal_comments():
request = RequestFactory.create()
ccpo = UserFactory.from_atat_role("ccpo")
request = Requests.update_internal_comments(ccpo, request, "this is my comment")
assert request.internal_comments.text == "this is my comment"