Skip to content

Commit

Permalink
fix: update formatings
Browse files Browse the repository at this point in the history
(cherry picked from commit 5044297)
  • Loading branch information
Bhavan23 authored and mergify[bot] committed Oct 15, 2024
1 parent 699b098 commit a8ad608
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions erpnext/selling/doctype/sales_order/test_sales_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
from frappe.core.doctype.user_permission.test_user_permission import create_user
from frappe.tests.utils import FrappeTestCase, change_settings
from frappe.utils import add_days, flt, getdate, nowdate, today
from erpnext.stock.get_item_details import get_bin_details


from erpnext.accounts.test.accounts_mixin import AccountsTestMixin
from erpnext.controllers.accounts_controller import update_child_qty_rate
Expand All @@ -32,6 +30,7 @@
)
from erpnext.stock.doctype.item.test_item import make_item
from erpnext.stock.doctype.stock_entry.stock_entry_utils import make_stock_entry
from erpnext.stock.get_item_details import get_bin_details


class TestSalesOrder(AccountsTestMixin, FrappeTestCase):
Expand Down Expand Up @@ -102,7 +101,9 @@ def test_make_material_request(self):
self.assertEqual(len(mr.get("items")), len(so.get("items")))

for item in mr.get("items"):
actual_qty = get_bin_details(item.item_code, item.warehouse, mr.company, True).get("actual_qty", 0)
actual_qty = get_bin_details(item.item_code, item.warehouse, mr.company, True).get(
"actual_qty", 0
)
self.assertEqual(flt(item.actual_qty), actual_qty)

def test_make_delivery_note(self):
Expand Down

0 comments on commit a8ad608

Please sign in to comment.