8848digital / erpnext

Free and Open Source Enterprise Resource Planning (ERP)
https://erpnext.com
GNU General Public License v3.0
0 stars 0 forks source link

Error in test_product_bundle_price_calculation_for_multiple_product_bundles_when_calculate_bundle_price_is_checked #538

Closed aartimanjare closed 1 hour ago

aartimanjare commented 4 days ago

Information about bug

ERROR: test_product_bundle_price_calculation_for_multiple_product_bundles_when_calculate_bundle_price_is_checked (erpnext.selling.doctype.quotation.test_quotation.TestQuotation)

Module

selling

Version

Frappe - v15 Erpnext - v15

Installation method

None

Relevant log output / Stack trace / Full Error Message.

bench run-tests --doctype "Quotation" --test test_product_bundle_price_calculation_for_multiple_product_bundles_when_calculate_bundle_price_is_checked
E
======================================================================
ERROR: test_product_bundle_price_calculation_for_multiple_product_bundles_when_calculate_bundle_price_is_checked (erpnext.selling.doctype.quotation.test_quotation.TestQuotation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/aarti/postgres/frappe-bench-post/apps/erpnext/erpnext/selling/doctype/quotation/test_quotation.py", line 418, in test_product_bundle_price_calculation_for_multiple_product_bundles_when_calculate_bundle_price_is_checked
    quotation.packed_items[3].rate = 300
IndexError: list index out of range

----------------------------------------------------------------------
Ran 1 test in 5.290s

FAILED (errors=1)
Barathpalanisamy commented 1 day ago

The test data is wrongly created in erp site. you can delete the product bundle in site and run the test case.

image

tinadn commented 1 hour ago

Deleting product bundle resolved issue.