From 38e43e092d1c509b930132e20ee74db47dab2a1d Mon Sep 17 00:00:00 2001 From: Sanket322 Date: Fri, 13 Dec 2024 19:48:52 +0530 Subject: [PATCH] fix: resolve test case for sales invoice --- india_compliance/gst_india/overrides/test_sales_invoice.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/india_compliance/gst_india/overrides/test_sales_invoice.py b/india_compliance/gst_india/overrides/test_sales_invoice.py index da2c3285f..caaadaaf9 100644 --- a/india_compliance/gst_india/overrides/test_sales_invoice.py +++ b/india_compliance/gst_india/overrides/test_sales_invoice.py @@ -16,7 +16,9 @@ def test_validate_invoice_number(self): "PI2021 - 001", ] for name in invalid_names: - doc = frappe._dict(name=name, posting_date=posting_date) + doc = frappe._dict( + name=name, posting_date=posting_date, doctype="Sales Invoice" + ) self.assertRaises(frappe.ValidationError, validate_invoice_number, doc) valid_names = [