Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincarrogan committed Apr 24, 2024
1 parent 71e705a commit 99e02b1
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions ui_tests/caseworker/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,38 @@ def prepare_for_final_review(api_test_client): # noqa


def prepare_case(api_test_client, nlr): # noqa
data = [
{
"type": "approve",
"text": "approved",
"note": "approved",
"end_user": api_test_client.context["end_user"]["id"],
"footnote_required": False,
},
{
"type": "approve",
"text": "approved",
"note": "approved",
"ultimate_end_user": api_test_client.context["ultimate_end_user"]["id"],
"footnote_required": False,
},
{
"type": "approve",
"text": "approved",
"note": "approved",
"consignee": api_test_client.context["consignee"]["id"],
"footnote_required": False,
},
{
"type": "approve",
"text": "approved",
"note": "approved",
"third_party": api_test_client.context["third_party"]["id"],
"footnote_required": False,
},
]
api_test_client.gov_users.put_test_user_in_team("FCDO")
api_test_client.cases.create_user_advice(api_test_client.context["case_id"], data)
api_test_client.gov_users.put_test_user_in_team("Admin")
api_test_client.flags.assign_case_flags(api_test_client.context["case_id"], [])
api_test_client.gov_users.put_test_user_in_team("Licensing Unit")
Expand Down

0 comments on commit 99e02b1

Please sign in to comment.