Merge pull request #35569 from s-aga-r/FIX-SO-SR-TEST

fix(test): `test_stock_reservation_against_sales_order`
This commit is contained in:
Sagar Sharma 2023-06-06 16:13:22 +05:30 committed by GitHub
commit a14a08dcb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1772,7 +1772,14 @@ class TestSalesOrder(FrappeTestCase):
self.assertEqual(pe.references[1].reference_name, so.name)
self.assertEqual(pe.references[1].allocated_amount, 300)
@change_settings("Stock Settings", {"enable_stock_reservation": 1})
@change_settings(
"Stock Settings",
{
"enable_stock_reservation": 1,
"auto_create_serial_and_batch_bundle_for_outward": 1,
"pick_serial_and_batch_based_on": "FIFO",
},
)
def test_stock_reservation_against_sales_order(self) -> None:
from random import randint, uniform