test(site-finder): cover is_residential_zone raw_props/subcategory branch (#1353 follow-up) #1705

Merged
lekss361 merged 1 commit from test/residential-zone-rawprops-1681 into main 2026-06-17 18:34:31 +00:00
Owner

Проблема (ревью #1681)

#1353 ввёл детект жилой зоны через NSPD raw_props["subcategory"], но без тестов на этот путь.

Решение

+10 unit-тестов is_residential_zone (sub2/sub3→True, sub1 ИЖС/sub4→False, str-coercion, fallback на zone_code ^Ж, None/empty/invalid → no crash) +5 интеграционных compute_gate_verdict (NSPD reg-number вместо Ж-кода).

Verify

pytest (gate/residential/zone/verdict) → 179 passed, 3 skipped. Только тест-файл.

## Проблема (ревью #1681) #1353 ввёл детект жилой зоны через NSPD `raw_props["subcategory"]`, но без тестов на этот путь. ## Решение +10 unit-тестов `is_residential_zone` (sub2/sub3→True, sub1 ИЖС/sub4→False, str-coercion, fallback на zone_code ^Ж, None/empty/invalid → no crash) +5 интеграционных `compute_gate_verdict` (NSPD reg-number вместо Ж-кода). ## Verify `pytest` (gate/residential/zone/verdict) → **179 passed, 3 skipped**. Только тест-файл.
lekss361 added 1 commit 2026-06-17 18:28:51 +00:00
test(site-finder): cover is_residential_zone raw_props/subcategory branch (#1353 follow-up)
Some checks failed
CI / changes (push) Has been cancelled
CI / backend-tests (push) Has been cancelled
CI / frontend-tests (push) Has been cancelled
CI / openapi-codegen-check (push) Has been cancelled
CI / changes (pull_request) Successful in 5s
CI / frontend-tests (pull_request) Has been skipped
CI / openapi-codegen-check (pull_request) Failing after 1m46s
CI / backend-tests (pull_request) Failing after 8m53s
827459e72a
lekss361 merged commit ae6d86d9cc into main 2026-06-17 18:34:31 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lekss361/gendesign#1705
No description provided.