Lerne Taxonomie und Trefferliste live von Geizhals, damit Wizard und Kandidaten echte Quelldaten nutzen.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
d784248e28
commit
46857715df
25 files changed
+1614
-27
No files matched your search
@@ -68,6 +68,33 @@ def test_broken_mapping_is_not_used():
|
||||
assert "ram_gb" in internal
|
||||
|
||||
|
||||
def test_multiple_xf_filters_join_with_tilde():
|
||||
url, _ = generate_search_url(
|
||||
category_url="https://geizhals.de/?cat=nb",
|
||||
criteria_items=[
|
||||
{"criterion": "ram_gb", "operator": ">=", "value": 16},
|
||||
{"criterion": "gpu", "operator": ">=", "value": 8},
|
||||
],
|
||||
mappings=[
|
||||
{
|
||||
"criterion_key": "ram_gb",
|
||||
"external_filter_key": "12",
|
||||
"source_value": "16384",
|
||||
"encoding": {"url_param": "xf"},
|
||||
"status": "VERIFIED",
|
||||
},
|
||||
{
|
||||
"criterion_key": "gpu",
|
||||
"external_filter_key": "7436",
|
||||
"source_value": "8192",
|
||||
"encoding": {"url_param": "xf"},
|
||||
"status": "VERIFIED",
|
||||
},
|
||||
],
|
||||
)
|
||||
assert "xf=12_16384~7436_8192" in url or "xf=7436_8192~12_16384" in url
|
||||
|
||||
|
||||
def test_roundtrip_verifies_xf_and_maxp():
|
||||
assert verify_roundtrip(
|
||||
category_url="https://geizhals.de/?cat=nb",
|
||||
|
||||
Reference in new issue
Block a user