mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-05-23 16:35:59 +00:00
ci: enforce code formatting checks for backend and frontend (#1536)
This commit is contained in:
@@ -56,10 +56,7 @@ def test_billing_not_duplicated_on_second_call(model):
|
||||
payload = {"system": [{"type": "text", "text": "prompt"}]}
|
||||
model._apply_oauth_billing(payload)
|
||||
model._apply_oauth_billing(payload)
|
||||
billing_count = sum(
|
||||
1 for b in payload["system"]
|
||||
if isinstance(b, dict) and OAUTH_BILLING_HEADER in b.get("text", "")
|
||||
)
|
||||
billing_count = sum(1 for b in payload["system"] if isinstance(b, dict) and OAUTH_BILLING_HEADER in b.get("text", ""))
|
||||
assert billing_count == 1
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user