Skip to content

Commit

Permalink
fix: resolve test case for sales invoice
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanket322 committed Dec 13, 2024
1 parent 5131f45 commit 38e43e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion india_compliance/gst_india/overrides/test_sales_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 38e43e0

Please sign in to comment.