mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-29 06:38:24 +00:00
refactor(tests): reuse persistent master data instead of creating company per test
Replace per-test company creation in setUp() with persistent master data
from BootStrapTestData. Add Test PCV Company to test_records.json so it
becomes a persistent fixture rather than a throwaway created per test run.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
(cherry picked from commit 6e62750c2f)
# Conflicts:
# erpnext/accounts/report/financial_ratios/test_financial_ratios.py
This commit is contained in:
@@ -16,7 +16,7 @@ from erpnext.tests.utils import ERPNextTestSuite
|
||||
|
||||
class TestVATAuditReport(ERPNextTestSuite):
|
||||
def setUp(self):
|
||||
make_company("_Test Company SA VAT", "_TCSV")
|
||||
self.company = "_Test Company SA VAT"
|
||||
|
||||
create_account(
|
||||
account_name="VAT - 0%",
|
||||
|
||||
Reference in New Issue
Block a user