chore: [workflow] 提交工作区代码

This commit is contained in:
wangyunlong committed 2026-09-30 10:46:15 +08:00
1 parent 2ff588a65d
commit 01f3d7aaf7
131 files changed
+24306 -1320

No files matched your search

+15 -3
View File
@@ -102,10 +102,10 @@ def test_project_registry_covers_every_script_with_unique_stable_port() -> None:
data_root=project_root / "var",
)
assert len(scripts.command_ids) == 49
assert len(first.command_ids) == 152
assert len(scripts.command_ids) == 60
assert len(first.command_ids) == 163
bindings = [first.binding_for(command_id) for command_id in first.command_ids]
assert len({binding.cdp_port for binding in bindings}) == 152
assert len({binding.cdp_port for binding in bindings}) == 163
assert all(22000 <= binding.cdp_port <= 22999 for binding in bindings)
assert all(binding.cdp_url.startswith("http://127.0.0.1:") for binding in bindings)
assert bindings == [second.binding_for(item.script_id) for item in bindings]
@@ -178,6 +178,12 @@ def test_project_registry_covers_every_script_with_unique_stable_port() -> None:
assert jd_ad_costs.cdp_port == 22144
assert jd_ad_costs.account == "jd-shop"
assert jd_ad_costs.required_cookie_domains == ("jd.com",)
customer_service = first.binding_for("shop.jd_customer_service.collect")
assert customer_service.cdp_port == 22154
assert customer_service.account == "jd-shop"
assert customer_service.required_cookie_domains == ("jd.com",)
assert customer_service.required_cookie_names == ("pin", "thor")
assert customer_service.profile_dir != jd_ad_costs.profile_dir
collaborator_bilibili = first.binding_for(
"content_marketing:bilibili_scraper.py"
@@ -397,6 +403,9 @@ def test_project_account_pilot_covers_douyin_shop_members() -> None:
members = catalog.bindings_for_account("douyin-shop")
assert {member.command_id for member in members} == {
"shop.douyin_price_appeal",
"shop.douyin_customer_service.collect",
"shop.dy_negative_reviews.collect",
"shop.douyin_after_sales_quality.collect",
"product_commerce:dy_product_scraping.py",
"product_commerce:dy_audience_profile_collect.py",
"product_commerce:collect_dy_market_rank.py",
@@ -448,6 +457,9 @@ def test_project_accounts_cover_all_configured_platform_login_identities() -> No
"JD_SHOP",
"JD_PASSWORD",
)
assert catalog.account_for("jd-shop").login_identity_markers == (
"光影行星 GYXX官方旗舰店",
)
assert catalog.account_for("jd-self-operated").credential_env_names == (
"JD_SELF_OPERATED_ACCOUNT",
"JD_SELF_OPERATED_PASSWORD",