refactor: use cls.globalTestRecords instead of declaring test_records
This commit is contained in:
@@ -11,8 +11,11 @@ def add_default_params(func, doctype):
|
||||
return partial(func, doctype=doctype, txt="", searchfield="name", start=0, page_len=20, filters=None)
|
||||
|
||||
|
||||
EXTRA_TEST_RECORD_DEPENDENCIES = ["Employee", "Lead", "Item", "BOM", "Project", "Account"]
|
||||
|
||||
|
||||
class TestQueries(IntegrationTestCase):
|
||||
# All tests are based on doctype/test_records.json
|
||||
# All tests are based on self.globalTestRecords[doctype]
|
||||
|
||||
def assert_nested_in(self, item, container):
|
||||
self.assertIn(item, [vals for tuples in container for vals in tuples])
|
||||
|
||||
Reference in New Issue
Block a user