mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 10:49:09 +00:00
refactor: import from new location
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import frappe
|
||||
from frappe.test_runner import make_test_records
|
||||
from frappe.tests.utils import FrappeTestCase
|
||||
from frappe.tests import IntegrationTestCase
|
||||
from frappe.tests.utils import make_test_records
|
||||
|
||||
from erpnext.stock.get_item_details import get_item_details
|
||||
|
||||
@@ -8,7 +8,7 @@ test_ignore = ["BOM"]
|
||||
test_dependencies = ["Customer", "Supplier", "Item", "Price List", "Item Price"]
|
||||
|
||||
|
||||
class TestGetItemDetail(FrappeTestCase):
|
||||
class TestGetItemDetail(IntegrationTestCase):
|
||||
def setUp(self):
|
||||
make_test_records("Price List")
|
||||
super().setUp()
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import json
|
||||
|
||||
import frappe
|
||||
from frappe.tests.utils import FrappeTestCase
|
||||
from frappe.tests import IntegrationTestCase
|
||||
|
||||
from erpnext.stock.utils import scan_barcode
|
||||
|
||||
@@ -57,7 +57,7 @@ class StockTestMixin:
|
||||
self.assertEqual(exp_value, act_value, msg=f"{k} doesn't match \n{exp_gle}\n{act_gle}")
|
||||
|
||||
|
||||
class TestStockUtilities(FrappeTestCase, StockTestMixin):
|
||||
class TestStockUtilities(IntegrationTestCase, StockTestMixin):
|
||||
def test_barcode_scanning(self):
|
||||
simple_item = self.make_item(properties={"barcodes": [{"barcode": "12399"}]})
|
||||
self.assertEqual(scan_barcode("12399")["item_code"], simple_item.name)
|
||||
|
||||
@@ -2,7 +2,7 @@ import json
|
||||
import unittest
|
||||
|
||||
import frappe
|
||||
from frappe.tests.utils import FrappeTestCase
|
||||
from frappe.tests import IntegrationTestCase
|
||||
from hypothesis import given
|
||||
from hypothesis import strategies as st
|
||||
|
||||
@@ -317,7 +317,7 @@ class TestLIFOValuation(unittest.TestCase):
|
||||
self.assertTotalValue(total_value)
|
||||
|
||||
|
||||
class TestLIFOValuationSLE(FrappeTestCase):
|
||||
class TestLIFOValuationSLE(IntegrationTestCase):
|
||||
ITEM_CODE = "_Test LIFO item"
|
||||
WAREHOUSE = "_Test Warehouse - _TC"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user