put requests workflow tests behind a feature toggle
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import pytest
|
||||
from tests.factories import UserFactory, RequestFactory
|
||||
from atst.models.request_status_event import RequestStatus
|
||||
|
||||
|
||||
@pytest.mark.requests_workflow
|
||||
def test_creator_pending_finver(client, user_session):
|
||||
request = RequestFactory.create_with_status(
|
||||
RequestStatus.PENDING_FINANCIAL_VERIFICATION
|
||||
@@ -13,6 +15,7 @@ def test_creator_pending_finver(client, user_session):
|
||||
assert "verify" in response.location
|
||||
|
||||
|
||||
@pytest.mark.requests_workflow
|
||||
def test_creator_pending_finver_changes(client, user_session):
|
||||
request = RequestFactory.create_with_status(
|
||||
RequestStatus.CHANGES_REQUESTED_TO_FINVER
|
||||
@@ -24,6 +27,7 @@ def test_creator_pending_finver_changes(client, user_session):
|
||||
assert "verify" in response.location
|
||||
|
||||
|
||||
@pytest.mark.requests_workflow
|
||||
def test_creator_approved(client, user_session):
|
||||
request = RequestFactory.create_with_status(RequestStatus.APPROVED)
|
||||
user_session(request.creator)
|
||||
@@ -33,6 +37,7 @@ def test_creator_approved(client, user_session):
|
||||
assert "details" in response.location
|
||||
|
||||
|
||||
@pytest.mark.requests_workflow
|
||||
def test_creator_approved(client, user_session):
|
||||
request = RequestFactory.create_with_status(RequestStatus.STARTED)
|
||||
user_session(request.creator)
|
||||
@@ -42,6 +47,7 @@ def test_creator_approved(client, user_session):
|
||||
assert "new" in response.location
|
||||
|
||||
|
||||
@pytest.mark.requests_workflow
|
||||
def test_ccpo(client, user_session):
|
||||
ccpo = UserFactory.from_atat_role("ccpo")
|
||||
request = RequestFactory.create_with_status(RequestStatus.STARTED)
|
||||
|
||||
Reference in New Issue
Block a user