frappe/frappe#478, more changes, removed bean
diff --git a/erpnext/selling/doctype/customer/test_customer.py b/erpnext/selling/doctype/customer/test_customer.py
index be60795..19bcce8 100644
--- a/erpnext/selling/doctype/customer/test_customer.py
+++ b/erpnext/selling/doctype/customer/test_customer.py
@@ -8,6 +8,9 @@
from frappe.test_runner import make_test_records
+test_ignore = ["Price List"]
+
+test_records = frappe.get_test_records('Customer')
class TestCustomer(unittest.TestCase):
def test_party_details(self):
@@ -47,6 +50,3 @@
frappe.rename_doc("Customer", "_Test Customer 1 Renamed", "_Test Customer 1")
-test_ignore = ["Price List"]
-
-test_records = frappe.get_test_records('Customer')
\ No newline at end of file
diff --git a/erpnext/stock/doctype/stock_entry/test_stock_entry.py b/erpnext/stock/doctype/stock_entry/test_stock_entry.py
index 38e99c1..8c764ee 100644
--- a/erpnext/stock/doctype/stock_entry/test_stock_entry.py
+++ b/erpnext/stock/doctype/stock_entry/test_stock_entry.py
@@ -791,7 +791,7 @@
st1 = frappe.copy_doc(test_records[0])
st1.company = "_Test Company 1"
st1.doclist[1].t_warehouse="_Test Warehouse 2 - _TC1"
- self.assertRaises(frappe.PermissionError, st1.insert)
+ self.assertRaises(frappe.PermissionErrorp, st1.insert)
frappe.set_user("test2@example.com")
st1 = frappe.copy_doc(test_records[0])