fix: flaky point of sale test
This commit is contained in:
parent
75256863c6
commit
4bb557dbd8
@ -1,15 +1,25 @@
|
|||||||
# Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and Contributors
|
# Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and Contributors
|
||||||
# MIT License. See license.txt
|
# MIT License. See license.txt
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
import frappe
|
||||||
|
|
||||||
from erpnext.accounts.doctype.pos_profile.test_pos_profile import make_pos_profile
|
from erpnext.accounts.doctype.pos_profile.test_pos_profile import make_pos_profile
|
||||||
from erpnext.selling.page.point_of_sale.point_of_sale import get_items
|
from erpnext.selling.page.point_of_sale.point_of_sale import get_items
|
||||||
from erpnext.stock.doctype.item.test_item import make_item
|
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.doctype.stock_entry.stock_entry_utils import make_stock_entry
|
||||||
from erpnext.tests.utils import ERPNextTestCase
|
|
||||||
|
|
||||||
|
|
||||||
class TestPointOfSale(ERPNextTestCase):
|
class TestPointOfSale(unittest.TestCase):
|
||||||
|
@classmethod
|
||||||
|
def setUpClass(cls) -> None:
|
||||||
|
frappe.db.savepoint('before_test_point_of_sale')
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def tearDownClass(cls) -> None:
|
||||||
|
frappe.db.rollback(save_point='before_test_point_of_sale')
|
||||||
|
|
||||||
def test_item_search(self):
|
def test_item_search(self):
|
||||||
"""
|
"""
|
||||||
Test Stock and Service Item Search.
|
Test Stock and Service Item Search.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user