fix: item variant test cases
diff --git a/erpnext/controllers/tests/test_item_variant.py b/erpnext/controllers/tests/test_item_variant.py
index d4b5dd2..c257215 100644
--- a/erpnext/controllers/tests/test_item_variant.py
+++ b/erpnext/controllers/tests/test_item_variant.py
@@ -42,10 +42,10 @@
return variant
def make_item_variant():
- frappe.delete_doc_if_exists("Item", "_Test Variant Item-S", force=1)
- variant = create_variant_with_tables("_Test Variant Item", '{"Test Size": "Small"}')
- variant.item_code = "_Test Variant Item-S"
- variant.item_name = "_Test Variant Item-S"
+ frappe.delete_doc_if_exists("Item", "_Test Variant Item-XSL", force=1)
+ variant = create_variant_with_tables("_Test Variant Item", '{"Test Size": "Extra Small"}')
+ variant.item_code = "_Test Variant Item-XSL"
+ variant.item_name = "_Test Variant Item-XSL"
variant.save()
return variant
diff --git a/erpnext/stock/doctype/item_attribute/test_records.json b/erpnext/stock/doctype/item_attribute/test_records.json
index 0208c17..d346979 100644
--- a/erpnext/stock/doctype/item_attribute/test_records.json
+++ b/erpnext/stock/doctype/item_attribute/test_records.json
@@ -6,7 +6,8 @@
"item_attribute_values": [
{"attribute_value": "Small", "abbr": "S"},
{"attribute_value": "Medium", "abbr": "M"},
- {"attribute_value": "Large", "abbr": "L"}
+ {"attribute_value": "Large", "abbr": "L"},
+ {"attribute_value": "Extra Small", "abbr": "XSL"}
]
},
{