修改多个问题,优化代码结构
This commit is contained in:
@@ -225,6 +225,8 @@ async def test_full_pipeline_multinode_mock_covers_business_points(pipeline_bund
|
||||
|
||||
assert local_collection.get("lp_norm").context.get("bind_data_id") == remote_collection.get("rp_norm").data_id
|
||||
assert remote_collection.get("rp_norm").context.get("bind_data_id") == local_collection.get("lp_norm").data_id
|
||||
assert local_collection.get("lp_auto").context.get("bind_data_id") == remote_collection.get("rp_auto").data_id
|
||||
assert remote_collection.get("rp_auto").context.get("bind_data_id") == local_collection.get("lp_auto").data_id
|
||||
|
||||
assert await binding_manager.get_remote_id("test_project", "lp_auto") == "rp_auto"
|
||||
|
||||
@@ -242,6 +244,12 @@ async def test_full_pipeline_multinode_mock_covers_business_points(pipeline_bund
|
||||
assert create_fail_nodes[0].status == SyncStatus.FAILED
|
||||
assert create_async_nodes[0].status == SyncStatus.PENDING
|
||||
assert create_async_nodes[0].action == SyncAction.NONE
|
||||
assert local_collection.get("lp_create_ok").context.get("bind_data_id") == create_ok_nodes[0].data_id
|
||||
assert create_ok_nodes[0].context.get("bind_data_id") == local_collection.get("lp_create_ok").data_id
|
||||
assert local_collection.get("lp_create_async").context.get("bind_data_id") == create_async_nodes[0].data_id
|
||||
assert create_async_nodes[0].context.get("bind_data_id") == local_collection.get("lp_create_async").data_id
|
||||
assert "bind_data_id" not in local_collection.get("lp_create_fail").context
|
||||
assert "bind_data_id" not in create_fail_nodes[0].context
|
||||
|
||||
assert remote_collection.get("rc_upd_skip").status == SyncStatus.SKIPPED
|
||||
assert remote_collection.get("rc_upd_skip").action == SyncAction.NONE
|
||||
|
||||
Reference in New Issue
Block a user