diff --git a/erpnext/accounts/doctype/gl_entry/test_gl_entry.py b/erpnext/accounts/doctype/gl_entry/test_gl_entry.py deleted file mode 100644 index aeb6e9004fb..00000000000 --- a/erpnext/accounts/doctype/gl_entry/test_gl_entry.py +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors and Contributors -# See license.txt - -import frappe -import unittest - -test_records = frappe.get_test_records('GL Entry') - -class TestGLEntry(unittest.TestCase): - pass diff --git a/erpnext/accounts/doctype/gl_entry/test_records.json b/erpnext/accounts/doctype/gl_entry/test_records.json deleted file mode 100644 index 55f0057a68d..00000000000 --- a/erpnext/accounts/doctype/gl_entry/test_records.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "doctype": "GL Entry", - "name": "_Test GL Entry 1" - } -] diff --git a/erpnext/accounts/doctype/journal_voucher/test_journal_voucher.py b/erpnext/accounts/doctype/journal_voucher/test_journal_voucher.py index 2aac2b6942c..08f598db5ec 100644 --- a/erpnext/accounts/doctype/journal_voucher/test_journal_voucher.py +++ b/erpnext/accounts/doctype/journal_voucher/test_journal_voucher.py @@ -69,18 +69,18 @@ class TestJournalVoucher(unittest.TestCase): advance_paid = frappe.db.sql("""select advance_paid from `tab%s` where name=%s""" % (test_voucher.doctype, '%s'), (test_voucher.name)) payment_against_order = base_jv.get("entries")[0].get(dr_or_cr) - + self.assertTrue(flt(advance_paid[0][0]) == flt(payment_against_order)) def cancel_against_voucher_testcase(self, test_voucher): if test_voucher.doctype == "Journal Voucher": - # if test_voucher is a Journal Voucher, test cancellation of test_voucher + # if test_voucher is a Journal Voucher, test cancellation of test_voucher test_voucher.cancel() self.assertTrue(not frappe.db.sql("""select name from `tabJournal Voucher Detail` where against_jv=%s""", test_voucher.name)) elif test_voucher.doctype in ["Sales Order", "Purchase Order"]: - # if test_voucher is a Sales Order/Purchase Order, test error on cancellation of test_voucher + # if test_voucher is a Sales Order/Purchase Order, test error on cancellation of test_voucher submitted_voucher = frappe.get_doc(test_voucher.doctype, test_voucher.name) self.assertRaises(frappe.LinkExistsError, submitted_voucher.cancel) diff --git a/erpnext/accounts/doctype/journal_voucher/test_records.json b/erpnext/accounts/doctype/journal_voucher/test_records.json index 9355c50a180..285482f418d 100644 --- a/erpnext/accounts/doctype/journal_voucher/test_records.json +++ b/erpnext/accounts/doctype/journal_voucher/test_records.json @@ -6,7 +6,9 @@ "doctype": "Journal Voucher", "entries": [ { - "account": "_Test Customer - _TC", + "account": "_Test Receivable - _TC", + "party_type": "Customer", + "party": "_Test Customer", "credit": 400.0, "debit": 0.0, "doctype": "Journal Voucher Detail", @@ -33,7 +35,9 @@ "doctype": "Journal Voucher", "entries": [ { - "account": "_Test Supplier - _TC", + "account": "_Test Payable - _TC", + "party_type": "Supplier", + "party": "_Test Supplier", "credit": 0.0, "debit": 400.0, "doctype": "Journal Voucher Detail", @@ -60,7 +64,9 @@ "doctype": "Journal Voucher", "entries": [ { - "account": "_Test Customer - _TC", + "account": "_Test Receivable - _TC", + "party_type": "Customer", + "party": "_Test Customer", "credit": 0.0, "debit": 400.0, "doctype": "Journal Voucher Detail", diff --git a/erpnext/setup/install.py b/erpnext/setup/install.py index dce101ea916..fdbbe9ef372 100644 --- a/erpnext/setup/install.py +++ b/erpnext/setup/install.py @@ -5,16 +5,12 @@ from __future__ import unicode_literals import frappe -from frappe import _ - default_mail_footer = """