chore: Fix flaky test test_exact_match_with_price

- Clear cart settings in cache to avoid stale values
This commit is contained in:
marination 2022-02-08 12:02:02 +05:30
parent a64228741d
commit 4f5a0b8941

View File

@ -104,6 +104,8 @@ class TestVariantSelector(ERPNextTestCase):
})
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(
"Test-Tshirt-Temp",
selected_attributes={"Test Size": "Small", "Test Colour": "Red"}