mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 10:11:20 +00:00
test: remove commits from controller tests
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import unittest
|
|
||||||
|
|
||||||
import frappe
|
import frappe
|
||||||
from six import string_types
|
from six import string_types
|
||||||
@@ -11,9 +10,10 @@ from erpnext.stock.doctype.item.test_item import set_item_variant_settings
|
|||||||
from erpnext.stock.doctype.quality_inspection.test_quality_inspection import (
|
from erpnext.stock.doctype.quality_inspection.test_quality_inspection import (
|
||||||
create_quality_inspection_parameter,
|
create_quality_inspection_parameter,
|
||||||
)
|
)
|
||||||
|
from erpnext.tests.utils import ERPNextTestCase
|
||||||
|
|
||||||
|
|
||||||
class TestItemVariant(unittest.TestCase):
|
class TestItemVariant(ERPNextTestCase):
|
||||||
def test_tables_in_template_copied_to_variant(self):
|
def test_tables_in_template_copied_to_variant(self):
|
||||||
fields = [{'field_name': 'quality_inspection_template'}]
|
fields = [{'field_name': 'quality_inspection_template'}]
|
||||||
set_item_variant_settings(fields)
|
set_item_variant_settings(fields)
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import unittest
|
|
||||||
|
|
||||||
import frappe
|
import frappe
|
||||||
import frappe.utils
|
import frappe.utils
|
||||||
@@ -9,8 +8,10 @@ from frappe.model import mapper
|
|||||||
from frappe.test_runner import make_test_records
|
from frappe.test_runner import make_test_records
|
||||||
from frappe.utils import add_months, nowdate
|
from frappe.utils import add_months, nowdate
|
||||||
|
|
||||||
|
from erpnext.tests.utils import ERPNextTestCase
|
||||||
|
|
||||||
class TestMapper(unittest.TestCase):
|
|
||||||
|
class TestMapper(ERPNextTestCase):
|
||||||
def test_map_docs(self):
|
def test_map_docs(self):
|
||||||
'''Test mapping of multiple source docs on a single target doc'''
|
'''Test mapping of multiple source docs on a single target doc'''
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,16 @@
|
|||||||
from __future__ import print_function, unicode_literals
|
from __future__ import print_function, unicode_literals
|
||||||
|
|
||||||
import unittest
|
|
||||||
from uuid import uuid4 as _uuid4
|
from uuid import uuid4 as _uuid4
|
||||||
|
|
||||||
import frappe
|
import frappe
|
||||||
|
|
||||||
|
from erpnext.tests.utils import ERPNextTestCase
|
||||||
|
|
||||||
|
|
||||||
def uuid4():
|
def uuid4():
|
||||||
return str(_uuid4())
|
return str(_uuid4())
|
||||||
|
|
||||||
class TestTaxes(unittest.TestCase):
|
class TestTaxes(ERPNextTestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.company = frappe.get_doc({
|
self.company = frappe.get_doc({
|
||||||
'doctype': 'Company',
|
'doctype': 'Company',
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import unittest
|
|
||||||
from functools import partial
|
from functools import partial
|
||||||
|
|
||||||
from erpnext.controllers import queries
|
from erpnext.controllers import queries
|
||||||
|
from erpnext.tests.utils import ERPNextTestCase
|
||||||
|
|
||||||
|
|
||||||
def add_default_params(func, doctype):
|
def add_default_params(func, doctype):
|
||||||
@@ -10,7 +10,7 @@ def add_default_params(func, doctype):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class TestQueries(unittest.TestCase):
|
class TestQueries(ERPNextTestCase):
|
||||||
|
|
||||||
# All tests are based on doctype/test_records.json
|
# All tests are based on doctype/test_records.json
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user