I am puzzled how to hook an autoname to a WebsiteGenerator - I aim to write an example test to learn from.
My grep and sql searches did not find one example case.
select name, autoname from tabDocType where autoname like ‘%#%’;
±--------------------------±-------------------+
| name | autoname |
±--------------------------±-------------------+
| Activity Cost | AC-.##### |
| Announcement | announcement.##### |
| Asset Movement | AM-.##### |
| Authorization Rule | AR.#### |
| Bin | BIN/.####### |
| Custom Script | CustomScript.#### |
| Customize Form | DL.#### |
| Discussion | Discussion.#### |
| Error Log | Error-.##### |
| Event | EV.##### |
| Foobar | Foobar-.# |
| GL Entry | GL.####### |
| Guardian | GARD.#### |
| Item Price | ITEM-PRICE-.##### |
| Job Applicant | JA-.###### |
| Leave Application | LAP/.##### |
| Offer Letter | Offer-.##### |
| Packing Slip | PS.####### |
| Patch Log | PATCHLOG.##### |
| Period Closing Voucher | PCE/.### |
| Program Enrollment | PE.##### |
| Quotation Item | QUOD/.##### |
| Room | RM.#### |
| Sales Taxes and Charges | INVTD.###### |
| SMS Log | SMSLOG/.######## |
| Stock Ledger Entry | SLE/.######## |
| Student Attendance | SA.###### |
| Student Leave Application | SLA.###### |
| Student Log | SLog.#### |
| Task | TASK.##### |
| Tax Rule | TR.#### |
| Topic | Topic.#### |
| Training Feedback | Feedback.#### |
| Training Result | TRES.##### |
| Version | _VER.###### |
±--------------------------±-------------------+
35 rows in set (0.00 sec)
frappe@erpnext:~/frappe-bench$ find . -name *.py | xargs grep 'class ’ | grep ‘WebsiteGenerator’
./apps/erpnext/erpnext/stock/doctype/item/item.py:class Item(WebsiteGenerator):
./apps/erpnext/erpnext/setup/doctype/sales_partner/sales_partner.py:class SalesPartner(WebsiteGenerator):
./apps/erpnext/erpnext/setup/doctype/item_group/item_group.py:class ItemGroup(NestedSet, WebsiteGenerator):
./apps/erpnext/erpnext/hr/doctype/job_opening/job_opening.py:class JobOpening(WebsiteGenerator):
./apps/erpnext/erpnext/schools/doctype/student_admission/student_admission.py:class StudentAdmission(WebsiteGenerator):
./apps/frappe/frappe/website/website_generator.py:class WebsiteGenerator(Document):
./apps/frappe/frappe/website/doctype/help_category/help_category.py:class HelpCategory(WebsiteGenerator):
./apps/frappe/frappe/website/doctype/web_form/web_form.py:class WebForm(WebsiteGenerator):
./apps/frappe/frappe/website/doctype/help_article/help_article.py:class HelpArticle(WebsiteGenerator):
./apps/frappe/frappe/website/doctype/web_page/web_page.py:class WebPage(WebsiteGenerator):
./apps/frappe/frappe/website/doctype/blog_post/blog_post.py:class BlogPost(WebsiteGenerator):
./apps/frappe/frappe/website/doctype/blog_category/blog_category.py:class BlogCategory(WebsiteGenerator):