type: 收敛测试 schemas 与协议层类型
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
import pytest
|
||||
import base64
|
||||
import json
|
||||
import pytest
|
||||
from pathlib import Path
|
||||
from unittest.mock import patch
|
||||
|
||||
@@ -69,7 +70,7 @@ class TestParseResponse:
|
||||
def test_parse_golden_evidence(self):
|
||||
"""真实抓包模板响应必须可解析 (证据: evidence/dfp_chain_golden.json)。"""
|
||||
if not CHAIN_FILE.exists():
|
||||
self.skipTest("缺失 golden 注册链模板")
|
||||
pytest.skip("缺失 golden 注册链模板")
|
||||
data = json.loads(CHAIN_FILE.read_text(encoding="utf-8"))
|
||||
resp = base64.b64decode(data["dfpReport"]["resp_b64"])
|
||||
t1, t2, t5 = _parse_response(resp)
|
||||
|
||||
Reference in New Issue
Block a user