Skip to content

Commit dbe68bf

Browse files
committed
test: align generated CI assertions with workflow contracts
1 parent ac27783 commit dbe68bf

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

tests/test_ci_workflow_changes.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,15 @@ def test_automerge_uses_github_script_v9() -> None:
3232

3333
def test_ci_jobs_install_the_browser_extra() -> None:
3434
text = CI.read_text(encoding="utf-8")
35-
# lint-type, unit, integration, computer-acceptance, package: 5 occurrences.
36-
assert text.count("uv sync --frozen --dev --extra browser") == 5
35+
required = (
36+
("lint-type", "unit"),
37+
("unit", "integration"),
38+
("integration", "computer-acceptance"),
39+
("e2e", "package"),
40+
)
41+
for job, next_job in required:
42+
block = _job_block(text, job, next_job)
43+
assert "uv sync --frozen --dev --extra browser" in block
3744

3845

3946
def test_unit_matrix_job_uses_kater_checkout_sha_and_longer_timeout() -> None:
@@ -87,4 +94,4 @@ def test_no_org_leak_workflow_matches_shared_checkout_sha() -> None:
8794
def test_pyproject_pins_newer_uv_build_range() -> None:
8895
text = PYPROJECT.read_text(encoding="utf-8")
8996
assert 'requires = ["uv_build>=0.12.0,<0.13"]' in text
90-
assert "0.11.32" not in text
97+
assert "0.11.32" not in text

0 commit comments

Comments
 (0)