调整lsfx-mock默认数据库配置并更新NAS部署环境

This commit is contained in:
wkc
2026-03-31 23:03:14 +08:00
parent 2fdf5f1546
commit 8798aa9230
11 changed files with 213 additions and 5 deletions

View File

@@ -96,6 +96,10 @@ def test_apply_should_insert_new_account_fact_by_account_no():
assert len(fake_connection.executed_sql) == 1
executed = fake_connection.executed_sql[0]
assert "INSERT INTO ccdi_account_info" in executed["sql"]
assert "create_by" in executed["sql"]
assert "update_by" in executed["sql"]
assert "created_by" not in executed["sql"]
assert "updated_by" not in executed["sql"]
assert executed["params"] == (
"6222000000000001",
"DEBIT",
@@ -140,6 +144,7 @@ def test_apply_should_update_existing_account_fact_by_account_no():
assert len(fake_connection.executed_sql) == 1
executed = fake_connection.executed_sql[0]
assert "ON DUPLICATE KEY UPDATE" in executed["sql"]
assert "update_by = VALUES(update_by)" in executed["sql"]
assert executed["params"][0] == "6222000000000001"
assert executed["params"][2] == "测试员工结算卡"
assert executed["params"][10] == 1