mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-13 22:51:49 +00:00
committed by
Mergify
parent
7877c2e2aa
commit
9fcb730090
@@ -22,9 +22,6 @@ from erpnext.tests.utils import ERPNextTestSuite
|
|||||||
|
|
||||||
|
|
||||||
class TestRepostItemValuation(ERPNextTestSuite, StockTestMixin):
|
class TestRepostItemValuation(ERPNextTestSuite, StockTestMixin):
|
||||||
def tearDown(self):
|
|
||||||
frappe.flags.dont_execute_stock_reposts = False
|
|
||||||
|
|
||||||
def test_repost_time_slot(self):
|
def test_repost_time_slot(self):
|
||||||
repost_settings = frappe.get_doc("Stock Reposting Settings")
|
repost_settings = frappe.get_doc("Stock Reposting Settings")
|
||||||
|
|
||||||
@@ -198,6 +195,7 @@ class TestRepostItemValuation(ERPNextTestSuite, StockTestMixin):
|
|||||||
@ERPNextTestSuite.change_settings("Stock Reposting Settings", {"item_based_reposting": 0})
|
@ERPNextTestSuite.change_settings("Stock Reposting Settings", {"item_based_reposting": 0})
|
||||||
def test_prevention_of_cancelled_transaction_riv(self):
|
def test_prevention_of_cancelled_transaction_riv(self):
|
||||||
frappe.flags.dont_execute_stock_reposts = True
|
frappe.flags.dont_execute_stock_reposts = True
|
||||||
|
self.addCleanup(frappe.flags.pop, "dont_execute_stock_reposts")
|
||||||
|
|
||||||
item = make_item()
|
item = make_item()
|
||||||
warehouse = "_Test Warehouse - _TC"
|
warehouse = "_Test Warehouse - _TC"
|
||||||
|
|||||||
Reference in New Issue
Block a user