From 8867702f2ccef168d9eb9a313a751175925e4a10 Mon Sep 17 00:00:00 2001 From: David Date: Sat, 12 Oct 2024 12:27:55 +0200 Subject: [PATCH] chore: update imports --- erpnext/accounts/doctype/account/test_account.py | 2 +- erpnext/accounts/doctype/journal_entry/test_journal_entry.py | 1 - .../pos_invoice_merge_log/test_pos_invoice_merge_log.py | 1 - erpnext/manufacturing/doctype/bom/test_bom.py | 3 +-- .../doctype/bom_update_tool/test_bom_update_tool.py | 3 +-- erpnext/manufacturing/doctype/work_order/test_work_order.py | 3 +-- 6 files changed, 4 insertions(+), 9 deletions(-) diff --git a/erpnext/accounts/doctype/account/test_account.py b/erpnext/accounts/doctype/account/test_account.py index 8b489eb878d..4dbef8aabb9 100644 --- a/erpnext/accounts/doctype/account/test_account.py +++ b/erpnext/accounts/doctype/account/test_account.py @@ -327,7 +327,7 @@ class TestAccount(IntegrationTestCase): def _make_test_records(verbose=None): - from frappe.test_runner import make_test_objects + from frappe.tests.utils import make_test_objects accounts = [ # [account_name, parent_account, is_group] diff --git a/erpnext/accounts/doctype/journal_entry/test_journal_entry.py b/erpnext/accounts/doctype/journal_entry/test_journal_entry.py index 48352a801fc..d753394d413 100644 --- a/erpnext/accounts/doctype/journal_entry/test_journal_entry.py +++ b/erpnext/accounts/doctype/journal_entry/test_journal_entry.py @@ -3,7 +3,6 @@ import frappe from frappe.tests import IntegrationTestCase, UnitTestCase -from frappe.tests.utils import change_settings from frappe.utils import flt, nowdate from erpnext.accounts.doctype.account.test_account import get_inventory_account diff --git a/erpnext/accounts/doctype/pos_invoice_merge_log/test_pos_invoice_merge_log.py b/erpnext/accounts/doctype/pos_invoice_merge_log/test_pos_invoice_merge_log.py index f29e382fa0e..0b3ec2b1f27 100644 --- a/erpnext/accounts/doctype/pos_invoice_merge_log/test_pos_invoice_merge_log.py +++ b/erpnext/accounts/doctype/pos_invoice_merge_log/test_pos_invoice_merge_log.py @@ -4,7 +4,6 @@ import json import frappe from frappe.tests import IntegrationTestCase, UnitTestCase -from frappe.tests.utils import change_settings from erpnext.accounts.doctype.pos_closing_entry.test_pos_closing_entry import init_user_and_profile from erpnext.accounts.doctype.pos_invoice.pos_invoice import make_sales_return diff --git a/erpnext/manufacturing/doctype/bom/test_bom.py b/erpnext/manufacturing/doctype/bom/test_bom.py index 46743c7fb69..88c4d4521b9 100644 --- a/erpnext/manufacturing/doctype/bom/test_bom.py +++ b/erpnext/manufacturing/doctype/bom/test_bom.py @@ -6,8 +6,7 @@ from collections import deque from functools import partial import frappe -from frappe.tests import IntegrationTestCase, UnitTestCase -from frappe.tests.utils import timeout +from frappe.tests import IntegrationTestCase, UnitTestCase, timeout from frappe.utils import cstr, flt from erpnext.controllers.tests.test_subcontracting_controller import ( diff --git a/erpnext/manufacturing/doctype/bom_update_tool/test_bom_update_tool.py b/erpnext/manufacturing/doctype/bom_update_tool/test_bom_update_tool.py index ab762cbcffd..2aa9019fce1 100644 --- a/erpnext/manufacturing/doctype/bom_update_tool/test_bom_update_tool.py +++ b/erpnext/manufacturing/doctype/bom_update_tool/test_bom_update_tool.py @@ -2,8 +2,7 @@ # License: GNU General Public License v3. See license.txt import frappe -from frappe.tests import IntegrationTestCase, UnitTestCase -from frappe.tests.utils import timeout +from frappe.tests import IntegrationTestCase, UnitTestCase, timeout from erpnext.manufacturing.doctype.bom_update_log.test_bom_update_log import ( update_cost_in_all_boms_in_test, diff --git a/erpnext/manufacturing/doctype/work_order/test_work_order.py b/erpnext/manufacturing/doctype/work_order/test_work_order.py index 943e09b71e0..d692a787ebb 100644 --- a/erpnext/manufacturing/doctype/work_order/test_work_order.py +++ b/erpnext/manufacturing/doctype/work_order/test_work_order.py @@ -3,8 +3,7 @@ import frappe -from frappe.tests import IntegrationTestCase, UnitTestCase -from frappe.tests.utils import timeout +from frappe.tests import IntegrationTestCase, UnitTestCase, timeout from frappe.utils import add_days, add_months, add_to_date, cint, flt, now, today from erpnext.manufacturing.doctype.job_card.job_card import JobCardCancelError