test(lost_void): UP自动配队与编队名匹配测试 - #64
Open
pumpkinperson996 wants to merge 3 commits into
Open
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
为什么改
主仓「当期UP自动配队 + 编队选择匹配修复」的配套测试与实拍画面归档;
check_predefined_team行为有变(匹配失败不再置 use_priority_agent、移除 get_target_team_idx_by_priority),原有测试同步改造。改动要点
test_lost_void_up_team.py—— 配队规则(UP优先/同队搭档/试用保底)单测 + 矩阵入口UP头像行、编队选择网格UP徽章、出战画面槽位读队/换人计划的真实 fixture 测试(缺 fixture 自动 skip);另覆盖「拿不到UP时提前收手」的判断(原编队自带 / 已换入 / 计划里还剩UP → 继续;都没有 → 不再改动剩余槽位)test_match_team_name.py—— 编队名匹配收紧(目标不在当前页返回 None 触发翻页、去空白精确匹配、同前缀不同编号不模糊命中)test_app_predefined_team.py—— 按新行为改造:匹配失败按固定编队出战且 use_priority_agent=False;新增 UP自动配队成功/失败回退分支;移除已删除的 get_target_team_idx_by_priority 用例screens/(迷失之地-矩阵行动/入口面板、矩阵行动-编队选择 3 态、特遣调查/入口面板、通用-出战 5 态;其中 自由编队-初始 用无损 webp —— q90 有损会把小尺寸UP徽章压到 OCR 识别不出)关联
主仓 PR: OneDragon-Anything/ZenlessZoneZero-OneDragon#2743