mirror of
https://github.com/rennf93/roboco.git
synced 2026-08-03 07:23:24 +02:00
test(conventions): baseline asserts the universal hygiene block rule, not a placement rule
The baseline-constraint and conventions-map integration tests asserted 'no models in routers' — the old UNIVERSAL block default. Now that placement rules are scan-derived (only seeded where the target module exists), an empty-scan test project carries no_models_in_routers no longer; the universal block rule is no_lint_suppressions. Updated the five assertions accordingly; behaviour (baseline attaches, isn't suppressed, is idempotent) is unchanged.
This commit is contained in:
@@ -133,7 +133,7 @@ async def test_baseline_constraints_include_block_rules(
|
||||
constraints = await get_conventions_service(db_session).baseline_constraints(
|
||||
project
|
||||
)
|
||||
assert any("no models in routers" in c for c in constraints)
|
||||
assert any("no lint suppressions" in c for c in constraints)
|
||||
|
||||
|
||||
async def test_render_ambient_block_is_bounded(
|
||||
|
||||
Reference in New Issue
Block a user