test: fixed asset movement tests

- set cwip account in company to avoid value missing
- removed unused statement
- removed trailing spaces
This commit is contained in:
marination 2021-08-11 16:40:07 +05:30
parent 8f1a3aef2e
commit 867939fcae
2 changed files with 10 additions and 10 deletions

View File

@ -103,7 +103,6 @@ class TestPOSClosingEntry(unittest.TestCase):
pos_inv2.submit()
pcv_doc = make_closing_entry_from_opening(opening_entry)
payment = pcv_doc.payment_reconciliation[0]
for d in pcv_doc.payment_reconciliation:
if d.mode_of_payment == 'Cash':

View File

@ -15,6 +15,7 @@ from erpnext.stock.doctype.purchase_receipt.test_purchase_receipt import make_pu
class TestAssetMovement(unittest.TestCase):
def setUp(self):
frappe.db.set_value("Company", "_Test Company", "capital_work_in_progress_account", "CWIP Account - _TC")
create_asset_data()
make_location()