refactor: DB independent capitalization of test cases (#31359)
This commit is contained in:
parent
2535d5edd0
commit
2a9105f26f
@ -216,7 +216,7 @@ def make_payment_entry(advance):
|
||||
def make_employee_advance(employee_name, args=None):
|
||||
doc = frappe.new_doc("Employee Advance")
|
||||
doc.employee = employee_name
|
||||
doc.company = "_Test company"
|
||||
doc.company = "_Test Company"
|
||||
doc.purpose = "For site visit"
|
||||
doc.currency = erpnext.get_company_currency("_Test company")
|
||||
doc.exchange_rate = 1
|
||||
|
@ -24,7 +24,7 @@ class TestLandedCostVoucher(FrappeTestCase):
|
||||
pr = make_purchase_receipt(
|
||||
company="_Test Company with perpetual inventory",
|
||||
warehouse="Stores - TCP1",
|
||||
supplier_warehouse="Work in Progress - TCP1",
|
||||
supplier_warehouse="Work In Progress - TCP1",
|
||||
get_multiple_items=True,
|
||||
get_taxes_and_charges=True,
|
||||
)
|
||||
@ -195,7 +195,7 @@ class TestLandedCostVoucher(FrappeTestCase):
|
||||
pr = make_purchase_receipt(
|
||||
company="_Test Company with perpetual inventory",
|
||||
warehouse="Stores - TCP1",
|
||||
supplier_warehouse="Work in Progress - TCP1",
|
||||
supplier_warehouse="Work In Progress - TCP1",
|
||||
get_multiple_items=True,
|
||||
get_taxes_and_charges=True,
|
||||
do_not_submit=True,
|
||||
@ -280,7 +280,7 @@ class TestLandedCostVoucher(FrappeTestCase):
|
||||
pr = make_purchase_receipt(
|
||||
company="_Test Company with perpetual inventory",
|
||||
warehouse="Stores - TCP1",
|
||||
supplier_warehouse="Work in Progress - TCP1",
|
||||
supplier_warehouse="Work In Progress - TCP1",
|
||||
do_not_save=True,
|
||||
)
|
||||
pr.items[0].cost_center = "Main - TCP1"
|
||||
|
@ -276,7 +276,7 @@ class TestPurchaseReceipt(FrappeTestCase):
|
||||
pr = make_purchase_receipt(
|
||||
company="_Test Company with perpetual inventory",
|
||||
warehouse="Stores - TCP1",
|
||||
supplier_warehouse="Work in Progress - TCP1",
|
||||
supplier_warehouse="Work In Progress - TCP1",
|
||||
get_multiple_items=True,
|
||||
get_taxes_and_charges=True,
|
||||
)
|
||||
@ -486,13 +486,13 @@ class TestPurchaseReceipt(FrappeTestCase):
|
||||
pr = make_purchase_receipt(
|
||||
company="_Test Company with perpetual inventory",
|
||||
warehouse="Stores - TCP1",
|
||||
supplier_warehouse="Work in Progress - TCP1",
|
||||
supplier_warehouse="Work In Progress - TCP1",
|
||||
)
|
||||
|
||||
return_pr = make_purchase_receipt(
|
||||
company="_Test Company with perpetual inventory",
|
||||
warehouse="Stores - TCP1",
|
||||
supplier_warehouse="Work in Progress - TCP1",
|
||||
supplier_warehouse="Work In Progress - TCP1",
|
||||
is_return=1,
|
||||
return_against=pr.name,
|
||||
qty=-2,
|
||||
@ -573,13 +573,13 @@ class TestPurchaseReceipt(FrappeTestCase):
|
||||
pr = make_purchase_receipt(
|
||||
company="_Test Company with perpetual inventory",
|
||||
warehouse="Stores - TCP1",
|
||||
supplier_warehouse="Work in Progress - TCP1",
|
||||
supplier_warehouse="Work In Progress - TCP1",
|
||||
)
|
||||
|
||||
return_pr = make_purchase_receipt(
|
||||
company="_Test Company with perpetual inventory",
|
||||
warehouse="Stores - TCP1",
|
||||
supplier_warehouse="Work in Progress - TCP1",
|
||||
supplier_warehouse="Work In Progress - TCP1",
|
||||
is_return=1,
|
||||
return_against=pr.name,
|
||||
qty=-5,
|
||||
@ -615,7 +615,7 @@ class TestPurchaseReceipt(FrappeTestCase):
|
||||
pr = make_purchase_receipt(
|
||||
company="_Test Company with perpetual inventory",
|
||||
warehouse="Stores - TCP1",
|
||||
supplier_warehouse="Work in Progress - TCP1",
|
||||
supplier_warehouse="Work In Progress - TCP1",
|
||||
qty=2,
|
||||
rejected_qty=2,
|
||||
rejected_warehouse=rejected_warehouse,
|
||||
@ -624,7 +624,7 @@ class TestPurchaseReceipt(FrappeTestCase):
|
||||
return_pr = make_purchase_receipt(
|
||||
company="_Test Company with perpetual inventory",
|
||||
warehouse="Stores - TCP1",
|
||||
supplier_warehouse="Work in Progress - TCP1",
|
||||
supplier_warehouse="Work In Progress - TCP1",
|
||||
is_return=1,
|
||||
return_against=pr.name,
|
||||
qty=-2,
|
||||
@ -951,7 +951,7 @@ class TestPurchaseReceipt(FrappeTestCase):
|
||||
cost_center=cost_center,
|
||||
company="_Test Company with perpetual inventory",
|
||||
warehouse="Stores - TCP1",
|
||||
supplier_warehouse="Work in Progress - TCP1",
|
||||
supplier_warehouse="Work In Progress - TCP1",
|
||||
)
|
||||
|
||||
stock_in_hand_account = get_inventory_account(pr.company, pr.get("items")[0].warehouse)
|
||||
@ -975,7 +975,7 @@ class TestPurchaseReceipt(FrappeTestCase):
|
||||
pr = make_purchase_receipt(
|
||||
company="_Test Company with perpetual inventory",
|
||||
warehouse="Stores - TCP1",
|
||||
supplier_warehouse="Work in Progress - TCP1",
|
||||
supplier_warehouse="Work In Progress - TCP1",
|
||||
)
|
||||
|
||||
stock_in_hand_account = get_inventory_account(pr.company, pr.get("items")[0].warehouse)
|
||||
|
Loading…
Reference in New Issue
Block a user