mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 12:19:12 +00:00
fix: test
This commit is contained in:
@@ -1870,7 +1870,17 @@ class TestSalesInvoice(unittest.TestCase):
|
|||||||
|
|
||||||
def test_einvoice_submission_without_irn(self):
|
def test_einvoice_submission_without_irn(self):
|
||||||
# init
|
# init
|
||||||
frappe.db.set_value('E Invoice Settings', 'E Invoice Settings', 'enable', 1)
|
einvoice_settings = frappe.get_doc('E Invoice Settings')
|
||||||
|
einvoice_settings.enable = 1
|
||||||
|
einvoice_settings.applicable_from = nowdate()
|
||||||
|
einvoice_settings.append('credentials', {
|
||||||
|
'company': '_Test Company',
|
||||||
|
'gstin': '27AAECE4835E1ZR',
|
||||||
|
'username': 'test',
|
||||||
|
'password': 'test'
|
||||||
|
})
|
||||||
|
einvoice_settings.save()
|
||||||
|
|
||||||
country = frappe.flags.country
|
country = frappe.flags.country
|
||||||
frappe.flags.country = 'India'
|
frappe.flags.country = 'India'
|
||||||
|
|
||||||
@@ -1881,7 +1891,8 @@ class TestSalesInvoice(unittest.TestCase):
|
|||||||
si.submit()
|
si.submit()
|
||||||
|
|
||||||
# reset
|
# reset
|
||||||
frappe.db.set_value('E Invoice Settings', 'E Invoice Settings', 'enable', 0)
|
einvoice_settings = frappe.get_doc('E Invoice Settings')
|
||||||
|
einvoice_settings.enable = 0
|
||||||
frappe.flags.country = country
|
frappe.flags.country = country
|
||||||
|
|
||||||
def test_einvoice_json(self):
|
def test_einvoice_json(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user