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

frappe.exceptions.DoesNotExistError: DocType Payment Gateway not found #1280

Open
8848jay opened this issue Feb 13, 2025 · 0 comments
Open
Assignees
Labels
bug Something isn't working Delivery Note ERPNext Core Stand alone ERPNext

Comments

@8848jay
Copy link

8848jay commented Feb 13, 2025

Information about bug

Bug occurs when running test case on delivery note and delivery trip doctype testcases

Module

stock

Version

ERPNext: v15.50.0 (pre-prod)

Frappe Framework: v15.51.2 (pre-prod)

Installation method

None

Relevant log output / Stack trace / Full Error Message.

Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/frappe/test-postgres/test-bench/apps/frappe/frappe/utils/bench_helper.py", line 114, in <module>
    main()
  File "/home/frappe/test-postgres/test-bench/apps/frappe/frappe/utils/bench_helper.py", line 20, in main
    click.Group(commands=commands)(prog_name="bench")
  File "/home/frappe/test-postgres/test-bench/env/lib/python3.10/site-packages/click/core.py", line 1161, in __call__
    return self.main(*args, **kwargs)
  File "/home/frappe/test-postgres/test-bench/env/lib/python3.10/site-packages/click/core.py", line 1082, in main
    rv = self.invoke(ctx)
  File "/home/frappe/test-postgres/test-bench/env/lib/python3.10/site-packages/click/core.py", line 1697, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/frappe/test-postgres/test-bench/env/lib/python3.10/site-packages/click/core.py", line 1697, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/frappe/test-postgres/test-bench/env/lib/python3.10/site-packages/click/core.py", line 1443, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/frappe/test-postgres/test-bench/env/lib/python3.10/site-packages/click/core.py", line 788, in invoke
    return __callback(*args, **kwargs)
  File "/home/frappe/test-postgres/test-bench/env/lib/python3.10/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/frappe/test-postgres/test-bench/apps/frappe/frappe/commands/__init__.py", line 29, in _func
    ret = f(frappe._dict(ctx.obj), *args, **kwargs)
  File "/home/frappe/test-postgres/test-bench/apps/frappe/frappe/commands/utils.py", line 790, in run_tests
    ret = frappe.test_runner.main(
  File "/home/frappe/test-postgres/test-bench/apps/frappe/frappe/test_runner.py", line 90, in main
    ret = run_tests_for_doctype(
  File "/home/frappe/test-postgres/test-bench/apps/frappe/frappe/test_runner.py", line 213, in run_tests_for_doctype
    make_test_records(doctype, verbose=verbose, force=force, commit=True)
  File "/home/frappe/test-postgres/test-bench/apps/frappe/frappe/test_runner.py", line 343, in make_test_records
    make_test_records(options, verbose, force, commit=commit)
  File "/home/frappe/test-postgres/test-bench/apps/frappe/frappe/test_runner.py", line 343, in make_test_records
    make_test_records(options, verbose, force, commit=commit)
  File "/home/frappe/test-postgres/test-bench/apps/frappe/frappe/test_runner.py", line 343, in make_test_records
    make_test_records(options, verbose, force, commit=commit)
  [Previous line repeated 5 more times]
  File "/home/frappe/test-postgres/test-bench/apps/frappe/frappe/test_runner.py", line 337, in make_test_records
    for options in get_dependencies(doctype):
  File "/home/frappe/test-postgres/test-bench/apps/frappe/frappe/test_runner.py", line 360, in get_dependencies
    module, test_module = get_modules(doctype)
  File "/home/frappe/test-postgres/test-bench/apps/frappe/frappe/test_runner.py", line 350, in get_modules
    test_module = load_doctype_module(doctype, module, "test_")
  File "/home/frappe/test-postgres/test-bench/apps/frappe/frappe/modules/utils.py", line 247, in load_doctype_module
    module = module or get_doctype_module(doctype)
  File "/home/frappe/test-postgres/test-bench/apps/frappe/frappe/modules/utils.py", line 238, in get_doctype_module
    frappe.throw(_("DocType {} not found").format(doctype), exc=frappe.DoesNotExistError)
  File "/home/frappe/test-postgres/test-bench/apps/frappe/frappe/__init__.py", line 603, in throw
    msgprint(
  File "/home/frappe/test-postgres/test-bench/apps/frappe/frappe/__init__.py", line 568, in msgprint
    _raise_exception()
  File "/home/frappe/test-postgres/test-bench/apps/frappe/frappe/__init__.py", line 519, in _raise_exception
    raise exc
frappe.exceptions.DoesNotExistError: DocType Payment Gateway not found



Installed app - 
ERPNext: v15.50.0 (pre-prod)
Frappe Framework: v15.51.2 (pre-prod)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Delivery Note ERPNext Core Stand alone ERPNext
Projects
None yet
Development

No branches or pull requests

2 participants