limit valid request submission statuses
This commit is contained in:
parent
293aba230b
commit
260560699e
@ -139,8 +139,6 @@ class Requests(object):
|
|||||||
|
|
||||||
_VALID_SUBMISSION_STATUSES = [
|
_VALID_SUBMISSION_STATUSES = [
|
||||||
RequestStatus.STARTED,
|
RequestStatus.STARTED,
|
||||||
RequestStatus.PENDING_FINANCIAL_VERIFICATION,
|
|
||||||
RequestStatus.PENDING_CCPO_APPROVAL,
|
|
||||||
RequestStatus.CHANGES_REQUESTED,
|
RequestStatus.CHANGES_REQUESTED,
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ def test_dont_auto_approve_if_no_dollar_value_specified(new_request):
|
|||||||
def test_should_allow_submission(new_request):
|
def test_should_allow_submission(new_request):
|
||||||
assert Requests.should_allow_submission(new_request)
|
assert Requests.should_allow_submission(new_request)
|
||||||
|
|
||||||
RequestStatusEventFactory.create(request=new_request, new_status=RequestStatus.PENDING_FINANCIAL_VERIFICATION)
|
RequestStatusEventFactory.create(request=new_request, new_status=RequestStatus.CHANGES_REQUESTED)
|
||||||
assert Requests.should_allow_submission(new_request)
|
assert Requests.should_allow_submission(new_request)
|
||||||
|
|
||||||
del new_request.body['details_of_use']
|
del new_request.body['details_of_use']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user