fix(expenses): unify AI application submission transaction
This commit is contained in:
@@ -627,7 +627,7 @@ def test_user_agent_application_submit_enters_leader_review() -> None:
|
||||
response = build_application_user_agent_response(
|
||||
db,
|
||||
"确认提交",
|
||||
context_overrides={"manager_name": "陈硕"},
|
||||
context_overrides={"manager_name": "陈硕", "department_name": "技术部"},
|
||||
history=[
|
||||
{"role": "user", "content": initial_message},
|
||||
{"role": "user", "content": "飞机"},
|
||||
@@ -683,7 +683,7 @@ def test_user_agent_application_submit_blocks_duplicate_business_time() -> None:
|
||||
first_response = build_application_user_agent_response(
|
||||
db,
|
||||
"确认提交",
|
||||
context_overrides={"manager_name": "陈硕"},
|
||||
context_overrides={"manager_name": "陈硕", "department_name": "技术部"},
|
||||
history=history,
|
||||
)
|
||||
first_claim = application_claim_query(db).one()
|
||||
@@ -691,7 +691,7 @@ def test_user_agent_application_submit_blocks_duplicate_business_time() -> None:
|
||||
second_response = build_application_user_agent_response(
|
||||
db,
|
||||
"确认提交",
|
||||
context_overrides={"manager_name": "陈硕"},
|
||||
context_overrides={"manager_name": "陈硕", "department_name": "技术部"},
|
||||
history=history,
|
||||
)
|
||||
|
||||
@@ -742,6 +742,7 @@ def test_user_agent_application_submit_blocks_overlapping_travel_dates() -> None
|
||||
"确认提交",
|
||||
context_overrides={
|
||||
"manager_name": "向万红",
|
||||
"department_name": "技术部",
|
||||
"application_preview": {
|
||||
"fields": {
|
||||
"applicationType": "差旅费用申请",
|
||||
@@ -772,6 +773,7 @@ def test_user_agent_application_submit_normalizes_location_mixed_with_business_c
|
||||
"确认提交",
|
||||
context_overrides={
|
||||
"manager_name": "向万红",
|
||||
"department_name": "技术部",
|
||||
"application_preview": {
|
||||
"fields": {
|
||||
"applicationType": "差旅费用申请",
|
||||
|
||||
Reference in New Issue
Block a user