problem: exchange rate API is returning exchange rates for "_Test currency". These tests were relying on failure of that function. (cherry picked from commit 27a29eb6bc67fc8dce482c0b38239929cf3fc6fb) Co-authored-by: Ankush <ankush@iwebnotes.com>
This commit is contained in:
parent
9ea24db20a
commit
aec7846407
@ -269,11 +269,14 @@ class TestBatch(unittest.TestCase):
|
|||||||
batch2 = create_batch('_Test Batch Price Item', 300, 1)
|
batch2 = create_batch('_Test Batch Price Item', 300, 1)
|
||||||
batch3 = create_batch('_Test Batch Price Item', 400, 0)
|
batch3 = create_batch('_Test Batch Price Item', 400, 0)
|
||||||
|
|
||||||
|
company = "_Test Company with perpetual inventory"
|
||||||
|
currency = frappe.get_cached_value("Company", company, "default_currency")
|
||||||
|
|
||||||
args = frappe._dict({
|
args = frappe._dict({
|
||||||
"item_code": "_Test Batch Price Item",
|
"item_code": "_Test Batch Price Item",
|
||||||
"company": "_Test Company with perpetual inventory",
|
"company": company,
|
||||||
"price_list": "_Test Price List",
|
"price_list": "_Test Price List",
|
||||||
"currency": "_Test Currency",
|
"currency": currency,
|
||||||
"doctype": "Sales Invoice",
|
"doctype": "Sales Invoice",
|
||||||
"conversion_rate": 1,
|
"conversion_rate": 1,
|
||||||
"price_list_currency": "_Test Currency",
|
"price_list_currency": "_Test Currency",
|
||||||
|
|||||||
@ -83,14 +83,17 @@ class TestItem(unittest.TestCase):
|
|||||||
|
|
||||||
make_test_objects("Item Price")
|
make_test_objects("Item Price")
|
||||||
|
|
||||||
|
company = "_Test Company"
|
||||||
|
currency = frappe.get_cached_value("Company", company, "default_currency")
|
||||||
|
|
||||||
details = get_item_details({
|
details = get_item_details({
|
||||||
"item_code": "_Test Item",
|
"item_code": "_Test Item",
|
||||||
"company": "_Test Company",
|
"company": company,
|
||||||
"price_list": "_Test Price List",
|
"price_list": "_Test Price List",
|
||||||
"currency": "_Test Currency",
|
"currency": currency,
|
||||||
"doctype": "Sales Order",
|
"doctype": "Sales Order",
|
||||||
"conversion_rate": 1,
|
"conversion_rate": 1,
|
||||||
"price_list_currency": "_Test Currency",
|
"price_list_currency": currency,
|
||||||
"plc_conversion_rate": 1,
|
"plc_conversion_rate": 1,
|
||||||
"order_type": "Sales",
|
"order_type": "Sales",
|
||||||
"customer": "_Test Customer",
|
"customer": "_Test Customer",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user