mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 05:09:11 +00:00
test: set formula in scorecard to avoid ValidationError (#25116)
This commit is contained in:
@@ -9,9 +9,7 @@ import unittest
|
|||||||
class TestSupplierScorecard(unittest.TestCase):
|
class TestSupplierScorecard(unittest.TestCase):
|
||||||
|
|
||||||
def test_create_scorecard(self):
|
def test_create_scorecard(self):
|
||||||
delete_test_scorecards()
|
doc = make_supplier_scorecard().insert()
|
||||||
my_doc = make_supplier_scorecard()
|
|
||||||
doc = my_doc.insert()
|
|
||||||
self.assertEqual(doc.name, valid_scorecard[0].get("supplier"))
|
self.assertEqual(doc.name, valid_scorecard[0].get("supplier"))
|
||||||
|
|
||||||
def test_criteria_weight(self):
|
def test_criteria_weight(self):
|
||||||
@@ -121,7 +119,8 @@ valid_scorecard = [
|
|||||||
{
|
{
|
||||||
"weight":100.0,
|
"weight":100.0,
|
||||||
"doctype":"Supplier Scorecard Scoring Criteria",
|
"doctype":"Supplier Scorecard Scoring Criteria",
|
||||||
"criteria_name":"Delivery"
|
"criteria_name":"Delivery",
|
||||||
|
"formula": "100"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"supplier":"_Test Supplier",
|
"supplier":"_Test Supplier",
|
||||||
|
|||||||
Reference in New Issue
Block a user