Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Budget test cases getting failed. #1042

Closed
anandk-spyke-o1 opened this issue Jan 15, 2025 · 1 comment · Fixed by #1041
Closed

Budget test cases getting failed. #1042

anandk-spyke-o1 opened this issue Jan 15, 2025 · 1 comment · Fixed by #1041
Assignees
Labels
bug Something isn't working

Comments

@anandk-spyke-o1
Copy link

Information about bug

bench run-tests --doctype "Budget"
EEEEEEEEEEEEE

ERROR: test_exception_approver_role (erpnext.accounts.doctype.budget.test_budget.TestBudget.test_exception_approver_role)

Traceback (most recent call last):
File "/home/anand/postgress-new/frappe-bench-postgres/apps/erpnext/erpnext/accounts/doctype/budget/test_budget.py", line 62, in test_exception_approver_role
budget = make_budget(budget_against="Cost Center")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/anand/postgress-new/frappe-bench-postgres/apps/erpnext/erpnext/accounts/doctype/budget/test_budget.py", line 544, in make_budget
budget.insert()
File "/home/anand/postgress-new/frappe-bench-postgres/apps/frappe/frappe/model/document.py", line 287, in insert
self._validate_links()
File "/home/anand/postgress-new/frappe-bench-postgres/apps/frappe/frappe/model/document.py", line 942, in validate_links
frappe.throw(
("Could not find {0}").format(msg), frappe.LinkValidationError)
File "/home/anand/postgress-new/frappe-bench-postgres/apps/frappe/frappe/init.py", line 603, in throw
msgprint(
File "/home/anand/postgress-new/frappe-bench-postgres/apps/frappe/frappe/init.py", line 568, in msgprint
_raise_exception()
File "/home/anand/postgress-new/frappe-bench-postgres/apps/frappe/frappe/init.py", line 519, in _raise_exception
raise exc
frappe.exceptions.LinkValidationError: Could not find Row #1: Child WBS: wbs_name

Module

accounts

Version

Vesion - 15

Installation method

None

Relevant log output / Stack trace / Full Error Message.

No response

@anandk-spyke-o1 anandk-spyke-o1 added the bug Something isn't working label Jan 15, 2025
@anandk-spyke-o1 anandk-spyke-o1 self-assigned this Jan 15, 2025
@anandk-spyke-o1
Copy link
Author

Fixed. Hence closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant