fix PT #159889979, allow resubmission of previously submitted form

This commit is contained in:
dandds
2018-08-20 09:42:31 -04:00
parent 24c041811f
commit 293aba230b
2 changed files with 11 additions and 1 deletions

View File

@@ -54,6 +54,9 @@ def test_dont_auto_approve_if_no_dollar_value_specified(new_request):
def test_should_allow_submission(new_request):
assert Requests.should_allow_submission(new_request)
RequestStatusEventFactory.create(request=new_request, new_status=RequestStatus.PENDING_FINANCIAL_VERIFICATION)
assert Requests.should_allow_submission(new_request)
del new_request.body['details_of_use']
assert not Requests.should_allow_submission(new_request)