ODS 完成
This commit is contained in:
@@ -29,7 +29,7 @@ def test_ods_order_settle_ingest(tmp_path):
|
||||
"anyField": "value",
|
||||
}
|
||||
]
|
||||
api = FakeAPIClient({"/order/list": sample})
|
||||
api = FakeAPIClient({"/Site/GetAllOrderSettleList": sample})
|
||||
task_cls = ODS_TASK_CLASSES["ODS_ORDER_SETTLE"]
|
||||
|
||||
with get_db_operations() as db_ops:
|
||||
@@ -42,7 +42,7 @@ def test_ods_order_settle_ingest(tmp_path):
|
||||
row = db_ops.upserts[0]["rows"][0]
|
||||
assert row["order_settle_id"] == 701
|
||||
assert row["order_trade_no"] == 8001
|
||||
assert row["source_endpoint"] == "/order/list"
|
||||
assert row["source_endpoint"] == "/Site/GetAllOrderSettleList"
|
||||
assert '"orderSettleId": 701' in row["payload"]
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ def test_ods_payment_ingest(tmp_path):
|
||||
"payAmount": "100.00",
|
||||
}
|
||||
]
|
||||
api = FakeAPIClient({"/pay/records": sample})
|
||||
api = FakeAPIClient({"/PayLog/GetPayLogListPage": sample})
|
||||
task_cls = ODS_TASK_CLASSES["ODS_PAYMENT"]
|
||||
|
||||
with get_db_operations() as db_ops:
|
||||
|
||||
Reference in New Issue
Block a user