small refactors to new TO workflow classes
This commit is contained in:
@@ -65,7 +65,7 @@ def serialize_dates(data):
|
||||
def test_new_to_can_edit_pf_attributes_screen_1():
|
||||
portfolio = PortfolioFactory.create()
|
||||
workflow = ShowTaskOrderWorkflow(user=portfolio.owner)
|
||||
assert not workflow.pf_attributes_read_only()
|
||||
assert not workflow.pf_attributes_read_only
|
||||
|
||||
|
||||
def test_new_pf_can_edit_pf_attributes_on_back_navigation():
|
||||
@@ -74,7 +74,7 @@ def test_new_pf_can_edit_pf_attributes_on_back_navigation():
|
||||
pf_workflow = ShowTaskOrderWorkflow(
|
||||
user=pf_task_order.creator, task_order_id=pf_task_order.id
|
||||
)
|
||||
assert not pf_workflow.pf_attributes_read_only()
|
||||
assert not pf_workflow.pf_attributes_read_only
|
||||
|
||||
|
||||
def test_to_on_pf_cannot_edit_pf_attributes():
|
||||
@@ -83,14 +83,14 @@ def test_to_on_pf_cannot_edit_pf_attributes():
|
||||
|
||||
workflow = ShowTaskOrderWorkflow(user=portfolio.owner, portfolio_id=portfolio.id)
|
||||
assert portfolio.num_task_orders == 1
|
||||
assert workflow.pf_attributes_read_only()
|
||||
assert workflow.pf_attributes_read_only
|
||||
|
||||
second_task_order = TaskOrderFactory(portfolio=portfolio)
|
||||
second_workflow = ShowTaskOrderWorkflow(
|
||||
user=portfolio.owner, task_order_id=second_task_order.id
|
||||
)
|
||||
assert portfolio.num_task_orders > 1
|
||||
assert second_workflow.pf_attributes_read_only()
|
||||
assert second_workflow.pf_attributes_read_only
|
||||
|
||||
|
||||
# TODO: this test will need to be more complicated when we add validation to
|
||||
|
Reference in New Issue
Block a user