fix: reset list outside loop

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
Akhil Narang 2025-10-17 16:59:09 +05:30
parent 8e4cf29e2c
commit fad80b892e
No known key found for this signature in database
GPG key ID: 9DCC61E211BF645F

View file

@ -142,6 +142,7 @@ class TestResourceAPI(FrappeAPITestCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.GENERATED_DOCUMENTS = []
for _ in range(20):
doc = frappe.get_doc(
{
@ -150,7 +151,6 @@ class TestResourceAPI(FrappeAPITestCase):
"allocated_to": "test@example.com",
}
).insert()
cls.GENERATED_DOCUMENTS = []
cls.GENERATED_DOCUMENTS.append(doc.name)
frappe.db.commit()