mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 02:01:21 +00:00
chore: Fix flaky test test_exact_match_with_price
- Clear cart settings in cache to avoid stale values
This commit is contained in:
@@ -104,6 +104,8 @@ class TestVariantSelector(ERPNextTestCase):
|
|||||||
})
|
})
|
||||||
|
|
||||||
make_web_item_price(item_code="Test-Tshirt-Temp-S-R", price_list_rate=100)
|
make_web_item_price(item_code="Test-Tshirt-Temp-S-R", price_list_rate=100)
|
||||||
|
|
||||||
|
frappe.local.shopping_cart_settings = None # clear cached settings values
|
||||||
next_values = get_next_attribute_and_values(
|
next_values = get_next_attribute_and_values(
|
||||||
"Test-Tshirt-Temp",
|
"Test-Tshirt-Temp",
|
||||||
selected_attributes={"Test Size": "Small", "Test Colour": "Red"}
|
selected_attributes={"Test Size": "Small", "Test Colour": "Red"}
|
||||||
|
|||||||
Reference in New Issue
Block a user