mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-03 00:23:21 +00:00
test: reset dont_execute_stock_reposts flag in tearDown
The test_prevention_of_cancelled_transaction_riv test sets frappe.flags.dont_execute_stock_reposts = True without resetting it, which leaked into the recalculate_valuation_rate tests and made repost() a no-op (incoming rate stayed unchanged). Reset the flag in tearDown so reposts run for subsequent tests. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -22,6 +22,9 @@ 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")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user