refactor: import from new location

This commit is contained in:
David
2024-10-06 11:54:52 +02:00
parent 13eb3c5c14
commit bda415a83d
142 changed files with 423 additions and 384 deletions

View File

@@ -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()

View File

@@ -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)

View File

@@ -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"