Use helper method for allowing submission

This commit is contained in:
Patrick Smith
2018-08-08 19:25:16 -04:00
parent 115c84680c
commit e1da908f93
3 changed files with 9 additions and 2 deletions

View File

@@ -50,6 +50,13 @@ def test_dont_auto_approve_if_no_dollar_value_specified(new_request):
assert request.status == RequestStatus.PENDING_CCPO_APPROVAL
def test_should_allow_submission(new_request):
assert Requests.should_allow_submission(new_request)
del new_request.body['details_of_use']
assert not Requests.should_allow_submission(new_request)
def test_exists(session):
user_allowed = UserFactory.create()
user_denied = UserFactory.create()