V10.552 收斂決策查詢新鮮度口徑
This commit is contained in:
@@ -99,6 +99,13 @@ def test_competitor_coverage_counts_only_active_product_intersection():
|
||||
assert "WHERE p.status = 'ACTIVE'" in coverage_source
|
||||
|
||||
|
||||
def test_competitor_decision_consumers_require_explicit_freshness():
|
||||
source = (ROOT / "services" / "competitor_intel_repository.py").read_text(encoding="utf-8")
|
||||
|
||||
assert "(cp.expires_at IS NULL OR cp.expires_at > CURRENT_TIMESTAMP)" not in source
|
||||
assert source.count("AND cp.expires_at > CURRENT_TIMESTAMP") >= 4
|
||||
|
||||
|
||||
def test_competitor_ppt_and_ai_use_momo_minus_pchome_gap_direction():
|
||||
ppt_source = (ROOT / "services" / "ppt_generator.py").read_text(encoding="utf-8")
|
||||
route_source = (ROOT / "routes" / "openclaw_bot_routes.py").read_text(encoding="utf-8")
|
||||
|
||||
Reference in New Issue
Block a user