run reformatter
This commit is contained in:
@@ -188,4 +188,3 @@ def test_accept_for_financial_verification():
|
||||
assert request.status == RequestStatus.PENDING_FINANCIAL_VERIFICATION
|
||||
current_review = request.latest_status.review
|
||||
assert current_review.fname_mao == review_data["fname_mao"]
|
||||
|
||||
|
@@ -70,7 +70,9 @@ class RequestReviewFactory(Base):
|
||||
fname_mao = factory.Faker("first_name")
|
||||
lname_mao = factory.Faker("last_name")
|
||||
email_mao = factory.Faker("email")
|
||||
phone_mao = factory.LazyFunction(lambda: "".join(random.choices(string.digits, k=10)))
|
||||
phone_mao = factory.LazyFunction(
|
||||
lambda: "".join(random.choices(string.digits, k=10))
|
||||
)
|
||||
fname_ccpo = factory.Faker("first_name")
|
||||
lname_ccpo = factory.Faker("last_name")
|
||||
|
||||
|
@@ -6,7 +6,10 @@ from atst.models.request_status_event import RequestStatus
|
||||
from atst.domain.roles import Roles
|
||||
|
||||
from tests.factories import (
|
||||
RequestFactory, TaskOrderFactory, UserFactory, RequestReviewFactory
|
||||
RequestFactory,
|
||||
TaskOrderFactory,
|
||||
UserFactory,
|
||||
RequestReviewFactory,
|
||||
)
|
||||
|
||||
|
||||
|
@@ -30,13 +30,11 @@ def test_ccpo_sees_approval_screen():
|
||||
request = RequestFactory.create()
|
||||
Requests.submit(request)
|
||||
ccpo_context = RequestsIndex(ccpo).execute()
|
||||
assert (
|
||||
ccpo_context["requests"][0]["edit_link"]
|
||||
== url_for("requests.approval", request_id=request.id)
|
||||
assert ccpo_context["requests"][0]["edit_link"] == url_for(
|
||||
"requests.approval", request_id=request.id
|
||||
)
|
||||
|
||||
mo_context = RequestsIndex(request.creator).execute()
|
||||
assert (
|
||||
mo_context["requests"][0]["edit_link"]
|
||||
!= url_for("requests.approval", request_id=request.id)
|
||||
assert mo_context["requests"][0]["edit_link"] != url_for(
|
||||
"requests.approval", request_id=request.id
|
||||
)
|
||||
|
Reference in New Issue
Block a user