fix(tradein): review minors — ceiling_height_m numeric(5,2) + strengthen finishing test
All checks were successful
CI / changes (push) Successful in 8s
CI / backend-tests (push) Has been skipped
CI / frontend-tests (push) Has been skipped
CI / backend-tests (pull_request) Has been skipped
CI / frontend-tests (pull_request) Has been skipped
CI / openapi-codegen-check (pull_request) Has been skipped
CI / openapi-codegen-check (push) Has been skipped
CI / changes (pull_request) Successful in 6s
All checks were successful
CI / changes (push) Successful in 8s
CI / backend-tests (push) Has been skipped
CI / frontend-tests (push) Has been skipped
CI / backend-tests (pull_request) Has been skipped
CI / frontend-tests (pull_request) Has been skipped
CI / openapi-codegen-check (pull_request) Has been skipped
CI / openapi-codegen-check (push) Has been skipped
CI / changes (pull_request) Successful in 6s
- Migration 111: ceiling_height_m numeric → numeric(5,2) (schema consistency with living_area_m2/kitchen_area_m2) - test_finishing_stored_lowercase_stripped: fixture now uses padded uppercase ' Чистовая ' to actually exercise .strip().lower(), asserts finishing == 'чистовая'
This commit is contained in:
parent
5285a03c98
commit
e76a8dcaef
2 changed files with 3 additions and 3 deletions
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
BEGIN;
|
BEGIN;
|
||||||
|
|
||||||
ALTER TABLE listings ADD COLUMN IF NOT EXISTS ceiling_height_m numeric;
|
ALTER TABLE listings ADD COLUMN IF NOT EXISTS ceiling_height_m numeric(5,2);
|
||||||
ALTER TABLE listings ADD COLUMN IF NOT EXISTS finishing text;
|
ALTER TABLE listings ADD COLUMN IF NOT EXISTS finishing text;
|
||||||
|
|
||||||
COMMIT;
|
COMMIT;
|
||||||
|
|
|
||||||
|
|
@ -303,12 +303,12 @@ def test_finishing_stored_lowercase_stripped() -> None:
|
||||||
<div data-marker="item-view/item-id">№ 8888888888</div>
|
<div data-marker="item-view/item-id">№ 8888888888</div>
|
||||||
<span itemprop="price" content="5000000">5 000 000 ₽</span>
|
<span itemprop="price" content="5000000">5 000 000 ₽</span>
|
||||||
<div data-marker="item-view/item-params">
|
<div data-marker="item-view/item-params">
|
||||||
<ul><li>Отделка: под ключ</li></ul>
|
<ul><li>Отделка: Чистовая </li></ul>
|
||||||
</div>
|
</div>
|
||||||
</body></html>
|
</body></html>
|
||||||
"""
|
"""
|
||||||
result = parse_detail_html(html, "https://www.avito.ru/test_8888888888")
|
result = parse_detail_html(html, "https://www.avito.ru/test_8888888888")
|
||||||
assert result.finishing == "под ключ"
|
assert result.finishing == "чистовая"
|
||||||
|
|
||||||
|
|
||||||
# ── _parse_height_m unit tests ────────────────────────────────────────────────
|
# ── _parse_height_m unit tests ────────────────────────────────────────────────
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue