调整lsfx-mock默认数据库配置并更新NAS部署环境
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user