Update tests to use proper route

Pass portfolio and creator to TOFactory so user has perms to edit TO
This commit is contained in:
leigh-mil
2019-07-30 15:26:07 -04:00
parent 8edfd1c355
commit c9451e0f93
2 changed files with 5 additions and 6 deletions

View File

@@ -51,7 +51,4 @@ def test_review_task_order_draft(client, user_session, task_order):
url_for("task_orders.review_task_order", task_order_id=task_order.id)
)
assert response.status_code == 302
assert (
url_for("task_orders.form_step_one_add_pdf", task_order_id=task_order.id)
in response.location
)
assert url_for("task_orders.edit", task_order_id=task_order.id) in response.location