fix(test): test cases fixed

This commit is contained in:
Nabin Hait 2018-09-11 19:36:49 +05:30
parent 713cfc786f
commit 13beb3a008
2 changed files with 3 additions and 2 deletions

View File

@ -12,7 +12,7 @@ from frappe.custom.doctype.property_setter.property_setter import make_property_
class AccountsSettings(Document):
def on_update(self):
pass
frappe.clear_cache()
def validate(self):
self.validate_stale_days()

View File

@ -350,8 +350,9 @@ class TestPurchaseReceipt(unittest.TestCase):
'location_name': 'Test Location'
}).insert()
set_perpetual_inventory(1, "_Test Company")
pr = make_purchase_receipt(cost_center=cost_center)
set_perpetual_inventory(1, pr.company)
stock_in_hand_account = get_inventory_account(pr.company, pr.get("items")[0].warehouse)
gl_entries = get_gl_entries("Purchase Receipt", pr.name)