Hello, thank you for your tutorial. I have an issue: bench --site bat.localhost run-tests --module "batwara.batwara.doctype.expense.test_expense" --test test_equal -> ERROR: test_equal (batwara.batwara.doctype.expense.test_expense.TestExpense.test_equal) ... ModuleNotFoundError: No module named 'frappe.core.doctype.expense' It shouldn't use the frappe module but the batwara, I have no idea why. Any idea?
@@BuildWithHussain I run Frappe using docker, bench is only working within the container, so no test runner from the host. AFAIK, it only writes the command above. Am I right?
I hope you will do the PWA part on live sometime in future 😊
Yup, on my list!
how to solve errors , ?
Hi 👋
Which errors?
@@BuildWithHussain DoesNotExistError
frappe.exceptions.DoesNotExistError: Module Core not found
@@BuildWithHussain can i share the image of following errors
@@BuildWithHussain There was an issue while migrating the DocType: Workspace
Use: discuss.frappe.io
Hello, thank you for your tutorial. I have an issue:
bench --site bat.localhost run-tests --module "batwara.batwara.doctype.expense.test_expense" --test test_equal
->
ERROR: test_equal (batwara.batwara.doctype.expense.test_expense.TestExpense.test_equal)
...
ModuleNotFoundError: No module named 'frappe.core.doctype.expense'
It shouldn't use the frappe module but the batwara, I have no idea why. Any idea?
Are you using the test runner extension? Also, can you share your unit test code too?
@@BuildWithHussain I run Frappe using docker, bench is only working within the container, so no test runner from the host. AFAIK, it only writes the command above. Am I right?
@@BuildWithHussain I was in prod container. Now I use docker dev, and it works.