Formatting
This commit is contained in:
parent
39efee046c
commit
b7aa4f38e4
@ -37,6 +37,7 @@ class UserFactory(factory.alchemy.SQLAlchemyModelFactory):
|
|||||||
role = Roles.get(atat_role_name)
|
role = Roles.get(atat_role_name)
|
||||||
return cls.create(atat_role=role, **kwargs)
|
return cls.create(atat_role=role, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
class RequestStatusEventFactory(factory.alchemy.SQLAlchemyModelFactory):
|
class RequestStatusEventFactory(factory.alchemy.SQLAlchemyModelFactory):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = RequestStatusEvent
|
model = RequestStatusEvent
|
||||||
|
@ -9,7 +9,7 @@ def test_action_required_mission_owner():
|
|||||||
Requests.submit(requests[0])
|
Requests.submit(requests[0])
|
||||||
context = RequestsIndex(creator).execute()
|
context = RequestsIndex(creator).execute()
|
||||||
|
|
||||||
assert context['requests'][0]['action_required'] == False
|
assert context["requests"][0]["action_required"] == False
|
||||||
|
|
||||||
|
|
||||||
def test_action_required_ccpo():
|
def test_action_required_ccpo():
|
||||||
@ -20,4 +20,4 @@ def test_action_required_ccpo():
|
|||||||
ccpo = UserFactory.from_atat_role("ccpo")
|
ccpo = UserFactory.from_atat_role("ccpo")
|
||||||
context = RequestsIndex(ccpo).execute()
|
context = RequestsIndex(ccpo).execute()
|
||||||
|
|
||||||
assert context['num_action_required'] == 1
|
assert context["num_action_required"] == 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user