From 2f28f0166e1687af3032e1c34596c1fdde401902 Mon Sep 17 00:00:00 2001 From: bot-backend Date: Fri, 21 Aug 2026 19:35:28 +0500 Subject: [PATCH] =?UTF-8?q?test(tradein):=20#3036=20live-=D1=82=D0=B5?= =?UTF-8?q?=D1=81=D1=82=20=E2=80=94=20=D0=BE=D0=B1=D1=8F=D0=B7=D0=B0=D1=82?= =?UTF-8?q?=D0=B5=D0=BB=D1=8C=D0=BD=D1=8B=D0=B5=20url/source=5Furl/dedup?= =?UTF-8?q?=5Fhash=20=D0=B2=20=D1=84=D0=B8=D0=BA=D1=81=D1=82=D1=83=D1=80?= =?UTF-8?q?=D0=B0=D1=85=20houses/listings=20(NOT=20NULL=20=D0=B1=D0=B5?= =?UTF-8?q?=D0=B7=20=D0=B4=D0=B5=D1=84=D0=BE=D0=BB=D1=82=D0=B0=20=D0=BD?= =?UTF-8?q?=D0=B0=20=D0=BF=D1=80=D0=BE=D0=B4=D0=B5;=20=D0=BB=D0=BE=D0=BA?= =?UTF-8?q?=D0=B0=D0=BB=D1=8C=D0=BD=D0=BE=20=D1=82=D0=B5=D1=81=D1=82=20?= =?UTF-8?q?=D0=BF=D1=80=D0=BE=D0=BF=D1=83=D1=81=D0=BA=D0=B0=D0=BB=D1=81?= =?UTF-8?q?=D1=8F)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../test_3036_detail_house_params_to_houses.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/tradein-mvp/backend/tests/test_3036_detail_house_params_to_houses.py b/tradein-mvp/backend/tests/test_3036_detail_house_params_to_houses.py index ed3e35b4..861da027 100644 --- a/tradein-mvp/backend/tests/test_3036_detail_house_params_to_houses.py +++ b/tradein-mvp/backend/tests/test_3036_detail_house_params_to_houses.py @@ -156,16 +156,20 @@ def test_live_fill_only_then_keep_then_unlinked_untouched() -> None: db.execute(text("DELETE FROM houses WHERE source='test' AND ext_house_id LIKE 't3036-%'")) hid = db.execute( text( - "INSERT INTO houses (source, ext_house_id, address) " - "VALUES ('test', 't3036-h1', 'ул. Тестовая, 1') RETURNING id" + "INSERT INTO houses (source, ext_house_id, url, address) " + "VALUES ('test', 't3036-h1', 'https://example.test/houses/t3036-h1', " + "'ул. Тестовая, 1') RETURNING id" ) ).scalar_one() db.execute( text( "INSERT INTO listings " - "(source, source_id, address, price_rub, house_id_fk, is_active) " - "VALUES ('avito', 't3036-1', 'ул. Тестовая, 1', 5000000, :hid, true), " - " ('avito', 't3036-2', 'ул. Тестовая, 2', 5000000, NULL, true)" + "(source, source_id, source_url, dedup_hash, address, price_rub, " + " house_id_fk, is_active) " + "VALUES ('avito', 't3036-1', 'https://www.avito.ru/x/t3036-1', 't3036-dh-1', " + " 'ул. Тестовая, 1', 5000000, :hid, true), " + " ('avito', 't3036-2', 'https://www.avito.ru/x/t3036-2', 't3036-dh-2', " + " 'ул. Тестовая, 2', 5000000, NULL, true)" ), {"hid": hid}, )