Uebernimm Enum-Listen und Filtergruppen in die Taxonomie, speichere Suchtreffer als Kandidaten und lasse CI das vorhandene API-Image nutzen.
Deploy Development / deploy (push) Successful in 2m6s
Test Suite / pytest-backend (push) Failing after 14s
Test Suite / smoke-dev (push) Successful in 1s
Test Suite / frontend-checks (push) Successful in 28s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-10-04 15:12:51 +02:00
1 parent 2117ca6b54
commit 68a8e3d945
23 files changed
+481 -118

No files matched your search

@@ -95,6 +95,24 @@ def test_multiple_xf_filters_join_with_tilde():
assert "xf=12_16384~7436_8192" in url or "xf=7436_8192~12_16384" in url
def test_enum_uses_selected_option_not_first_mapping_value():
url, _ = generate_search_url(
category_url="https://geizhals.de/?cat=nb",
criteria_items=[{"criterion": "hersteller", "operator": "=", "value": "Lenovo"}],
mappings=[
{
"criterion_key": "hersteller",
"external_filter_key": "1",
"source_value": "Apple",
"encoding": {"url_param": "xf", "options": {"Apple": "Apple", "Lenovo": "Lenovo"}},
"status": "VERIFIED",
}
],
)
assert "xf=1_Lenovo" in url
assert "Apple" not in url
def test_roundtrip_verifies_xf_and_maxp():
assert verify_roundtrip(
category_url="https://geizhals.de/?cat=nb",
@@ -28,6 +28,13 @@ def test_parser_reads_href_filters_and_price_inputs() -> None:
assert price["filter_type"] == "NUMERIC_RANGE"
assert price["encoding"]["min_parameter"] == "bpmin"
assert price["encoding"]["max_parameter"] == "bpmax"
hersteller = next(item for item in payload["filters"] if item["external_filter_key"] == "1")
assert hersteller["label"] == "Hersteller"
assert hersteller["filter_type"] == "ENUM"
assert hersteller["group_label"] == "Allgemein"
assert {option["source_value"] for option in hersteller["options"]} >= {"Apple", "ASUS", "Lenovo"}
display = next(item for item in payload["filters"] if item["external_filter_key"] == "12128")
assert display["group_label"] == "Display"
def test_learned_ram_and_price_encode_observed_geizhals_query() -> None: