Skip to content

Commit

Permalink
chore: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush committed Sep 3, 2021
1 parent eb73961 commit 72896ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion erpnext/patches/v13_0/add_custom_field_for_south_africa.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import frappe

from erpnext.regional.south_africa.setup import make_custom_fields, add_permissions
from erpnext.regional.south_africa.setup import add_permissions, make_custom_fields


def execute():
Expand Down
6 changes: 3 additions & 3 deletions erpnext/selling/doctype/quotation/test_quotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,9 @@ def test_quotation_expiry(self):
self.assertEqual(expired_quotation.status, "Expired")

def test_product_bundle_mapping_on_creating_so(self):
from erpnext.stock.doctype.item.test_item import make_item
from erpnext.selling.doctype.product_bundle.test_product_bundle import make_product_bundle
from erpnext.selling.doctype.quotation.quotation import make_sales_order
from erpnext.stock.doctype.item.test_item import make_item

make_item("_Test Product Bundle", {"is_stock_item": 0})
make_item("_Test Bundle Item 1", {"is_stock_item": 1})
Expand Down Expand Up @@ -261,8 +261,8 @@ def test_product_bundle_mapping_on_creating_so(self):
self.assertEqual(quotation_packed_items, so_packed_items)

def test_product_bundle_price_calculation_when_calculate_bundle_price_is_unchecked(self):
from erpnext.stock.doctype.item.test_item import make_item
from erpnext.selling.doctype.product_bundle.test_product_bundle import make_product_bundle
from erpnext.stock.doctype.item.test_item import make_item

make_item("_Test Product Bundle", {"is_stock_item": 0})
bundle_item1 = make_item("_Test Bundle Item 1", {"is_stock_item": 1})
Expand All @@ -281,8 +281,8 @@ def test_product_bundle_price_calculation_when_calculate_bundle_price_is_uncheck
self.assertEqual(quotation.items[0].amount, 200)

def test_product_bundle_price_calculation_when_calculate_bundle_price_is_checked(self):
from erpnext.stock.doctype.item.test_item import make_item
from erpnext.selling.doctype.product_bundle.test_product_bundle import make_product_bundle
from erpnext.stock.doctype.item.test_item import make_item

make_item("_Test Product Bundle", {"is_stock_item": 0})
make_item("_Test Bundle Item 1", {"is_stock_item": 1})
Expand Down

0 comments on commit 72896ad

Please sign in to comment.