diff --git a/frappe/contacts/doctype/contact/test_records.json b/frappe/contacts/doctype/contact/test_records.json new file mode 100644 index 0000000000..35fff587ae --- /dev/null +++ b/frappe/contacts/doctype/contact/test_records.json @@ -0,0 +1,39 @@ +[ + { + "doctype": "Contact", + "salutation": "Mr", + "first_name": "_Test Contact For _Test Customer", + "is_primary_contact": 1, + "status": "Open", + "email_ids": [ + { + "email_id": "test_contact@example.com", + "is_primary": 1 + } + ], + "phone_nos": [ + { + "phone": "+91 0000000000", + "is_primary_phone": 1 + } + ] + }, + { + "doctype": "Contact", + "first_name": "_Test Contact For _Test Supplier", + "is_primary_contact": 1, + "status": "Open", + "email_ids": [ + { + "email_id": "test_contact@example.com", + "is_primary": 1 + } + ], + "phone_nos": [ + { + "phone": "+91 0000000001", + "is_primary_phone": 1 + } + ] + } +] diff --git a/frappe/contacts/doctype/contact/test_records.toml b/frappe/contacts/doctype/contact/test_records.toml deleted file mode 100644 index f815732ae7..0000000000 --- a/frappe/contacts/doctype/contact/test_records.toml +++ /dev/null @@ -1,27 +0,0 @@ -[[Contact]] -salutation = "Mr" -first_name = "_Test Contact For _Test Customer" -is_primary_contact = 1 -status = "Open" -[[Contact.email_ids]] -email_id = "test_contact@example.com" -is_primary = 1 - -[[Contact.phone_nos]] -phone = "+91 0000000000" -is_primary_phone = 1 - - -[[Contact]] -first_name = "_Test Contact For _Test Supplier" -is_primary_contact = 1 -status = "Open" -[[Contact.email_ids]] -email_id = "test_contact@example.com" -is_primary = 1 - -[[Contact.phone_nos]] -phone = "+91 0000000001" -is_primary_phone = 1 - - diff --git a/frappe/contacts/doctype/salutation/test_records.json b/frappe/contacts/doctype/salutation/test_records.json new file mode 100644 index 0000000000..3a87fffff0 --- /dev/null +++ b/frappe/contacts/doctype/salutation/test_records.json @@ -0,0 +1,8 @@ +[ + { + "salutation": "Mr" + }, + { + "salutation": "Mrs" + } +] \ No newline at end of file diff --git a/frappe/contacts/doctype/salutation/test_records.toml b/frappe/contacts/doctype/salutation/test_records.toml deleted file mode 100644 index e3c0303cc1..0000000000 --- a/frappe/contacts/doctype/salutation/test_records.toml +++ /dev/null @@ -1,6 +0,0 @@ -[[Salutation]] -salutation = "Mr" - -[[Salutation]] -salutation = "Mrs" - diff --git a/frappe/core/doctype/communication/test_records.json b/frappe/core/doctype/communication/test_records.json new file mode 100644 index 0000000000..a69d3e9570 --- /dev/null +++ b/frappe/core/doctype/communication/test_records.json @@ -0,0 +1,10 @@ +[ + { + "doctype": "Communication", + "name": "_Test Communication 1", + "subject": "Test Subject", + "sent_or_received": "Received", + "parenttype": "User", + "parent": "Administrator" + } +] diff --git a/frappe/core/doctype/communication/test_records.toml b/frappe/core/doctype/communication/test_records.toml deleted file mode 100644 index 824d0400a8..0000000000 --- a/frappe/core/doctype/communication/test_records.toml +++ /dev/null @@ -1,7 +0,0 @@ -[[Communication]] -name = "_Test Communication 1" -subject = "Test Subject" -sent_or_received = "Received" -parenttype = "User" -parent = "Administrator" - diff --git a/frappe/core/doctype/docshare/test_records.json b/frappe/core/doctype/docshare/test_records.json new file mode 100644 index 0000000000..fe51488c70 --- /dev/null +++ b/frappe/core/doctype/docshare/test_records.json @@ -0,0 +1 @@ +[] diff --git a/frappe/core/doctype/page/test_records.json b/frappe/core/doctype/page/test_records.json new file mode 100644 index 0000000000..fe51488c70 --- /dev/null +++ b/frappe/core/doctype/page/test_records.json @@ -0,0 +1 @@ +[] diff --git a/frappe/core/doctype/report/test_records.json b/frappe/core/doctype/report/test_records.json new file mode 100644 index 0000000000..cee1a2011c --- /dev/null +++ b/frappe/core/doctype/report/test_records.json @@ -0,0 +1,10 @@ +[ + { + "doctype": "Report", + "name": "_Test Report 1", + "report_name": "_Test Report 1", + "report_type": "Query Report", + "is_standard": "No", + "ref_doctype": "Event" + } +] diff --git a/frappe/core/doctype/report/test_records.toml b/frappe/core/doctype/report/test_records.toml deleted file mode 100644 index 0336c0afb3..0000000000 --- a/frappe/core/doctype/report/test_records.toml +++ /dev/null @@ -1,7 +0,0 @@ -[[Report]] -name = "_Test Report 1" -report_name = "_Test Report 1" -report_type = "Query Report" -is_standard = "No" -ref_doctype = "Event" - diff --git a/frappe/core/doctype/role/test_records.json b/frappe/core/doctype/role/test_records.json new file mode 100644 index 0000000000..49442e6e42 --- /dev/null +++ b/frappe/core/doctype/role/test_records.json @@ -0,0 +1,22 @@ +[ + { + "doctype": "Role", + "role_name": "_Test Role", + "desk_access": 1 + }, + { + "doctype": "Role", + "role_name": "_Test Role 2", + "desk_access": 1 + }, + { + "doctype": "Role", + "role_name": "_Test Role 3", + "desk_access": 1 + }, + { + "doctype": "Role", + "role_name": "_Test Role 4", + "desk_access": 0 + } +] \ No newline at end of file diff --git a/frappe/core/doctype/role/test_records.toml b/frappe/core/doctype/role/test_records.toml deleted file mode 100644 index 0e40bf529b..0000000000 --- a/frappe/core/doctype/role/test_records.toml +++ /dev/null @@ -1,16 +0,0 @@ -[[Role]] -role_name = "_Test Role" -desk_access = 1 - -[[Role]] -role_name = "_Test Role 2" -desk_access = 1 - -[[Role]] -role_name = "_Test Role 3" -desk_access = 1 - -[[Role]] -role_name = "_Test Role 4" -desk_access = 0 - diff --git a/frappe/core/doctype/user/test_records.json b/frappe/core/doctype/user/test_records.json new file mode 100644 index 0000000000..9d1bf0efd4 --- /dev/null +++ b/frappe/core/doctype/user/test_records.json @@ -0,0 +1,95 @@ +[ + { + "doctype": "User", + "email": "test@example.com", + "enabled": 1, + "first_name": "_Test", + "new_password": "Eastern_43A1W", + "roles": [ + { + "doctype": "Has Role", + "parentfield": "roles", + "role": "_Test Role" + }, + { + "doctype": "Has Role", + "parentfield": "roles", + "role": "System Manager" + } + ] + }, + { + "doctype": "User", + "email": "test1@example.com", + "first_name": "_Test1", + "new_password": "Eastern_43A1W" + }, + { + "doctype": "User", + "email": "test2@example.com", + "first_name": "_Test2", + "new_password": "Eastern_43A1W", + "enabled": 1 + }, + { + "doctype": "User", + "email": "test3@example.com", + "first_name": "_Test3", + "new_password": "Eastern_43A1W", + "enabled": 1 + }, + { + "doctype": "User", + "email": "test4@example.com", + "first_name": "_Test4", + "new_password": "Eastern_43A1W", + "enabled": 1 + }, + { + "doctype": "User", + "email": "test'5@example.com", + "first_name": "_Test'5", + "new_password": "Eastern_43A1W", + "enabled": 1 + }, + { + "doctype": "User", + "email": "testperm@example.com", + "first_name": "_Test Perm", + "new_password": "Eastern_43A1W", + "enabled": 1 + }, + { + "doctype": "User", + "email": "testdelete@example.com", + "enabled": 1, + "first_name": "_Test", + "new_password": "Eastern_43A1W", + "roles": [ + { + "doctype": "Has Role", + "parentfield": "roles", + "role": "_Test Role 2" + }, + { + "doctype": "Has Role", + "parentfield": "roles", + "role": "System Manager" + } + ] + }, + { + "doctype": "User", + "email": "testpassword@example.com", + "enabled": 1, + "first_name": "_Test", + "new_password": "Eastern_43A1W", + "roles": [ + { + "doctype": "Has Role", + "parentfield": "roles", + "role": "System Manager" + } + ] + } +] diff --git a/frappe/core/doctype/user/test_records.toml b/frappe/core/doctype/user/test_records.toml deleted file mode 100644 index cd6fe92b1b..0000000000 --- a/frappe/core/doctype/user/test_records.toml +++ /dev/null @@ -1,78 +0,0 @@ -[[User]] -email = "test@example.com" -enabled = 1 -first_name = "_Test" -new_password = "Eastern_43A1W" -[[User.roles]] -doctype = "Has Role" -parentfield = "roles" -role = "_Test Role" - -[[User.roles]] -doctype = "Has Role" -parentfield = "roles" -role = "System Manager" - - -[[User]] -email = "test1@example.com" -first_name = "_Test1" -new_password = "Eastern_43A1W" - -[[User]] -email = "test2@example.com" -first_name = "_Test2" -new_password = "Eastern_43A1W" -enabled = 1 - -[[User]] -email = "test3@example.com" -first_name = "_Test3" -new_password = "Eastern_43A1W" -enabled = 1 - -[[User]] -email = "test4@example.com" -first_name = "_Test4" -new_password = "Eastern_43A1W" -enabled = 1 - -[[User]] -email = "test'5@example.com" -first_name = "_Test'5" -new_password = "Eastern_43A1W" -enabled = 1 - -[[User]] -email = "testperm@example.com" -first_name = "_Test Perm" -new_password = "Eastern_43A1W" -enabled = 1 - -[[User]] -email = "testdelete@example.com" -enabled = 1 -first_name = "_Test" -new_password = "Eastern_43A1W" -[[User.roles]] -doctype = "Has Role" -parentfield = "roles" -role = "_Test Role 2" - -[[User.roles]] -doctype = "Has Role" -parentfield = "roles" -role = "System Manager" - - -[[User]] -email = "testpassword@example.com" -enabled = 1 -first_name = "_Test" -new_password = "Eastern_43A1W" -[[User.roles]] -doctype = "Has Role" -parentfield = "roles" -role = "System Manager" - - diff --git a/frappe/core/doctype/version/test_records.json b/frappe/core/doctype/version/test_records.json new file mode 100644 index 0000000000..fe51488c70 --- /dev/null +++ b/frappe/core/doctype/version/test_records.json @@ -0,0 +1 @@ +[] diff --git a/frappe/custom/doctype/custom_field/test_records.json b/frappe/custom/doctype/custom_field/test_records.json new file mode 100644 index 0000000000..fe51488c70 --- /dev/null +++ b/frappe/custom/doctype/custom_field/test_records.json @@ -0,0 +1 @@ +[] diff --git a/frappe/custom/doctype/property_setter/test_records.json b/frappe/custom/doctype/property_setter/test_records.json new file mode 100644 index 0000000000..3c084b424e --- /dev/null +++ b/frappe/custom/doctype/property_setter/test_records.json @@ -0,0 +1,10 @@ +[ + { + "doc_type": "User", + "doctype_or_field": "DocField", + "field_name": "location", + "property": "in_list_view", + "property_type": "Check", + "value": "1" + } +] \ No newline at end of file diff --git a/frappe/custom/doctype/property_setter/test_records.toml b/frappe/custom/doctype/property_setter/test_records.toml deleted file mode 100644 index 34d097b4ba..0000000000 --- a/frappe/custom/doctype/property_setter/test_records.toml +++ /dev/null @@ -1,8 +0,0 @@ -[["Property Setter"]] -doc_type = "User" -doctype_or_field = "DocField" -field_name = "location" -property = "in_list_view" -property_type = "Check" -value = "1" - diff --git a/frappe/desk/doctype/event/test_records.json b/frappe/desk/doctype/event/test_records.json new file mode 100644 index 0000000000..41d5803083 --- /dev/null +++ b/frappe/desk/doctype/event/test_records.json @@ -0,0 +1,23 @@ +[ + { + "doctype": "Event", + "subject":"_Test Event 1", + "starts_on": "2014-01-01", + "event_type": "Public", + "creation": "2014-01-01" + }, + { + "doctype": "Event", + "subject":"_Test Event 2", + "starts_on": "2014-01-01", + "event_type": "Private", + "creation": "2014-01-01" + }, + { + "doctype": "Event", + "subject": "_Test Event 3", + "starts_on": "2014-02-01", + "event_type": "Private", + "creation": "2014-02-01" + } +] diff --git a/frappe/desk/doctype/event/test_records.toml b/frappe/desk/doctype/event/test_records.toml deleted file mode 100644 index 25b2a45750..0000000000 --- a/frappe/desk/doctype/event/test_records.toml +++ /dev/null @@ -1,18 +0,0 @@ -[[Event]] -subject = "_Test Event 1" -starts_on = "2014-01-01" -event_type = "Public" -creation = "2014-01-01" - -[[Event]] -subject = "_Test Event 2" -starts_on = "2014-01-01" -event_type = "Private" -creation = "2014-01-01" - -[[Event]] -subject = "_Test Event 3" -starts_on = "2014-02-01" -event_type = "Private" -creation = "2014-02-01" - diff --git a/frappe/desk/doctype/note/test_records.json b/frappe/desk/doctype/note/test_records.json new file mode 100644 index 0000000000..f3d7cff22b --- /dev/null +++ b/frappe/desk/doctype/note/test_records.json @@ -0,0 +1,7 @@ +[ + { + "doctype": "Note", + "name": "_Test Note 1", + "title": "Test Note Title" + } +] diff --git a/frappe/desk/doctype/note/test_records.toml b/frappe/desk/doctype/note/test_records.toml deleted file mode 100644 index 62a37ff791..0000000000 --- a/frappe/desk/doctype/note/test_records.toml +++ /dev/null @@ -1,4 +0,0 @@ -[[Note]] -name = "_Test Note 1" -title = "Test Note Title" - diff --git a/frappe/email/doctype/email_account/test_records.json b/frappe/email/doctype/email_account/test_records.json new file mode 100644 index 0000000000..2e204e5277 --- /dev/null +++ b/frappe/email/doctype/email_account/test_records.json @@ -0,0 +1,29 @@ +[ + { + "is_default": 1, + "is_global": 1, + "doctype": "Email Account", + "domain":"example.com", + "email_account_name": "_Test Email Account 1", + "enable_outgoing": 1, + "smtp_server": "test.example.com", + "email_id": "test@example.com", + "password": "password", + "add_signature": 1, + "signature": "\nBest Wishes\nTest Signature", + "enable_auto_reply": 1, + "auto_reply_message": "", + "enable_incoming": 1, + "notify_if_unreplied": 1, + "unreplied_for_mins": 20, + "send_notification_to": "test_unreplied@example.com", + "pop3_server": "pop.test.example.com", + "append_to": "ToDo", + "imap_folder": [{"folder_name": "INBOX", "append_to": "ToDo"}, {"folder_name": "Test Folder", "append_to": "Communication"}], + "track_email_status": 1 + }, + { + "doctype": "ToDo", + "description":"test doctype" + } +] diff --git a/frappe/email/doctype/email_account/test_records.toml b/frappe/email/doctype/email_account/test_records.toml deleted file mode 100644 index 30cc710d16..0000000000 --- a/frappe/email/doctype/email_account/test_records.toml +++ /dev/null @@ -1,32 +0,0 @@ -[["Email Account"]] -is_default = 1 -is_global = 1 -domain = "example.com" -email_account_name = "_Test Email Account 1" -enable_outgoing = 1 -smtp_server = "test.example.com" -email_id = "test@example.com" -password = "password" -add_signature = 1 -signature = "\nBest Wishes\nTest Signature" -enable_auto_reply = 1 -auto_reply_message = "" -enable_incoming = 1 -notify_if_unreplied = 1 -unreplied_for_mins = 20 -send_notification_to = "test_unreplied@example.com" -pop3_server = "pop.test.example.com" -append_to = "ToDo" -track_email_status = 1 -[["Email Account".imap_folder]] -folder_name = "INBOX" -append_to = "ToDo" - -[["Email Account".imap_folder]] -folder_name = "Test Folder" -append_to = "Communication" - - -[[ToDo]] -description = "test doctype" - diff --git a/frappe/email/doctype/email_domain/test_records.json b/frappe/email/doctype/email_domain/test_records.json new file mode 100644 index 0000000000..a6ccc99f06 --- /dev/null +++ b/frappe/email/doctype/email_domain/test_records.json @@ -0,0 +1,32 @@ +[ + { + "doctype": "Email Domain", + "domain_name": "test.com", + "email_id": "_test@test.com", + "email_server": "imap.test.com", + "use_imap": "imap.test.com", + "use_ssl": 1, + "use_tls": 1, + "incoming_port": "993", + "attachment_limit": "1", + "smtp_server": "smtp.test.com", + "smtp_port": "587", + "password": "password" + }, + { + "doctype": "Email Account", + "name": "_Test Email Account 1", + "enable_incoming": 1, + "email_id": "_test@test.com", + "domain": "test.com", + "email_server": "imap.test.com", + "use_imap": 1, + "use_ssl": 0, + "use_tls": 1, + "incoming_port": "143", + "attachment_limit": "1", + "smtp_server": "smtp.test.com", + "smtp_port": "587", + "password": "password" + } +] diff --git a/frappe/email/doctype/email_domain/test_records.toml b/frappe/email/doctype/email_domain/test_records.toml deleted file mode 100644 index 3dc4a5351a..0000000000 --- a/frappe/email/doctype/email_domain/test_records.toml +++ /dev/null @@ -1,28 +0,0 @@ -[["Email Domain"]] -domain_name = "test.com" -email_id = "_test@test.com" -email_server = "imap.test.com" -use_imap = "imap.test.com" -use_ssl = 1 -use_tls = 1 -incoming_port = "993" -attachment_limit = "1" -smtp_server = "smtp.test.com" -smtp_port = "587" -password = "password" - -[["Email Account"]] -name = "_Test Email Account 1" -enable_incoming = 1 -email_id = "_test@test.com" -domain = "test.com" -email_server = "imap.test.com" -use_imap = 1 -use_ssl = 0 -use_tls = 1 -incoming_port = "143" -attachment_limit = "1" -smtp_server = "smtp.test.com" -smtp_port = "587" -password = "password" - diff --git a/frappe/email/doctype/email_group/test_records.json b/frappe/email/doctype/email_group/test_records.json new file mode 100644 index 0000000000..a55b117697 --- /dev/null +++ b/frappe/email/doctype/email_group/test_records.json @@ -0,0 +1,6 @@ +[ + { + "doctype": "Email Group", + "title": "_Test Email Group" + } +] diff --git a/frappe/email/doctype/email_group/test_records.toml b/frappe/email/doctype/email_group/test_records.toml deleted file mode 100644 index 3316a85dfc..0000000000 --- a/frappe/email/doctype/email_group/test_records.toml +++ /dev/null @@ -1,3 +0,0 @@ -[["Email Group"]] -title = "_Test Email Group" - diff --git a/frappe/email/doctype/notification/test_records.json b/frappe/email/doctype/notification/test_records.json new file mode 100644 index 0000000000..5d9835f7f6 --- /dev/null +++ b/frappe/email/doctype/notification/test_records.json @@ -0,0 +1,77 @@ +[ + { + "doctype": "Notification", + "subject":"_Test Notification 1", + "document_type": "Communication", + "event": "New", + "attach_print": 0, + "message": "New communication {{ doc.content }} created", + "condition": "doc.communication_type=='Communication' and doc.sender_full_name=='__test_notification_sender__'", + "recipients": [ + { "receiver_by_document_field": "owner" } + ] + }, + { + "doctype": "Notification", + "subject":"_Test Notification 2", + "document_type": "Communication", + "event": "Save", + "attach_print": 0, + "sender_full_name": "__testsender__", + "message": "New communication {{ doc.content }} saved", + "condition": "doc.communication_type=='Communication' and doc.sender_full_name=='__test_notification_sender__'", + "recipients": [ + { "receiver_by_document_field": "owner" } + ], + "set_property_after_alert": "subject", + "property_value": "__testing__" + }, + { + "doctype": "Notification", + "subject":"_Test Notification 3", + "document_type": "Event", + "event": "Save", + "attach_print": 0, + "condition": "doc.event_type=='Public'", + "message": "A new public event {{ doc.subject }} on {{ doc.starts_on }} is created", + "recipients": [ + { "receiver_by_document_field": "owner" } + ] + }, + { + "doctype": "Notification", + "subject":"_Test Notification 4", + "document_type": "Event", + "event": "Value Change", + "attach_print": 0, + "value_changed": "description", + "message": "Description changed", + "recipients": [ + { "receiver_by_document_field": "owner" } + ] + }, + { + "doctype": "Notification", + "subject":"_Test Notification 5", + "document_type": "Event", + "event": "Days Before", + "attach_print": 0, + "date_changed": "starts_on", + "days_in_advance": 2, + "message": "Description changed", + "recipients": [ + { "receiver_by_document_field": "owner" } + ] + }, + { + "doctype": "Notification", + "subject":"_Test Notification 6", + "document_type": "User", + "event": "New", + "attach_print": 0, + "message": "New user {{ doc.name }} created", + "recipients": [ + { "receiver_by_document_field": "owner", "cc": "{{ doc.email }}" } + ] + } +] diff --git a/frappe/email/doctype/notification/test_records.toml b/frappe/email/doctype/notification/test_records.toml deleted file mode 100644 index f32b515703..0000000000 --- a/frappe/email/doctype/notification/test_records.toml +++ /dev/null @@ -1,70 +0,0 @@ -[[Notification]] -subject = "_Test Notification 1" -document_type = "Communication" -event = "New" -attach_print = 0 -message = "New communication {{ doc.content }} created" -condition = "doc.communication_type=='Communication' and doc.sender_full_name=='__test_notification_sender__'" -[[Notification.recipients]] -receiver_by_document_field = "owner" - - -[[Notification]] -subject = "_Test Notification 2" -document_type = "Communication" -event = "Save" -attach_print = 0 -sender_full_name = "__testsender__" -message = "New communication {{ doc.content }} saved" -condition = "doc.communication_type=='Communication' and doc.sender_full_name=='__test_notification_sender__'" -set_property_after_alert = "subject" -property_value = "__testing__" -[[Notification.recipients]] -receiver_by_document_field = "owner" - - -[[Notification]] -subject = "_Test Notification 3" -document_type = "Event" -event = "Save" -attach_print = 0 -condition = "doc.event_type=='Public'" -message = "A new public event {{ doc.subject }} on {{ doc.starts_on }} is created" -[[Notification.recipients]] -receiver_by_document_field = "owner" - - -[[Notification]] -subject = "_Test Notification 4" -document_type = "Event" -event = "Value Change" -attach_print = 0 -value_changed = "description" -message = "Description changed" -[[Notification.recipients]] -receiver_by_document_field = "owner" - - -[[Notification]] -subject = "_Test Notification 5" -document_type = "Event" -event = "Days Before" -attach_print = 0 -date_changed = "starts_on" -days_in_advance = 2 -message = "Description changed" -[[Notification.recipients]] -receiver_by_document_field = "owner" - - -[[Notification]] -subject = "_Test Notification 6" -document_type = "User" -event = "New" -attach_print = 0 -message = "New user {{ doc.name }} created" -[[Notification.recipients]] -receiver_by_document_field = "owner" -cc = "{{ doc.email }}" - - diff --git a/frappe/geo/doctype/country/test_records.json b/frappe/geo/doctype/country/test_records.json new file mode 100644 index 0000000000..5a7c8a5568 --- /dev/null +++ b/frappe/geo/doctype/country/test_records.json @@ -0,0 +1,6 @@ +[ + { + "country_name": "_Test Country", + "doctype": "Country" + } +] \ No newline at end of file diff --git a/frappe/geo/doctype/country/test_records.toml b/frappe/geo/doctype/country/test_records.toml deleted file mode 100644 index 68b9c67cbc..0000000000 --- a/frappe/geo/doctype/country/test_records.toml +++ /dev/null @@ -1,3 +0,0 @@ -[[Country]] -country_name = "_Test Country" - diff --git a/frappe/geo/doctype/currency/test_records.json b/frappe/geo/doctype/currency/test_records.json new file mode 100644 index 0000000000..0637a088a0 --- /dev/null +++ b/frappe/geo/doctype/currency/test_records.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/frappe/integrations/doctype/connected_app/test_records.json b/frappe/integrations/doctype/connected_app/test_records.json new file mode 100644 index 0000000000..4d19369248 --- /dev/null +++ b/frappe/integrations/doctype/connected_app/test_records.json @@ -0,0 +1,13 @@ +[ + { + "doctype": "Connected App", + "provider_name": "frappe", + "client_id": "test_client_id", + "client_secret": "test_client_secret", + "scopes": [ + { + "scope": "all" + } + ] + } +] diff --git a/frappe/integrations/doctype/connected_app/test_records.toml b/frappe/integrations/doctype/connected_app/test_records.toml deleted file mode 100644 index 1e290d3d0c..0000000000 --- a/frappe/integrations/doctype/connected_app/test_records.toml +++ /dev/null @@ -1,8 +0,0 @@ -[["Connected App"]] -provider_name = "frappe" -client_id = "test_client_id" -client_secret = "test_client_secret" -[["Connected App".scopes]] -scope = "all" - - diff --git a/frappe/integrations/doctype/token_cache/test_records.json b/frappe/integrations/doctype/token_cache/test_records.json new file mode 100644 index 0000000000..05840221a6 --- /dev/null +++ b/frappe/integrations/doctype/token_cache/test_records.json @@ -0,0 +1,18 @@ +[ + { + "doctype": "Token Cache", + "user": "test@example.com", + "access_token": "test-access-token", + "refresh_token": "test-refresh-token", + "token_type": "Bearer", + "expires_in": 1000, + "scopes": [ + { + "scope": "all" + }, + { + "scope": "openid" + } + ] + } +] \ No newline at end of file diff --git a/frappe/integrations/doctype/token_cache/test_records.toml b/frappe/integrations/doctype/token_cache/test_records.toml deleted file mode 100644 index 93961fa2ce..0000000000 --- a/frappe/integrations/doctype/token_cache/test_records.toml +++ /dev/null @@ -1,13 +0,0 @@ -[["Token Cache"]] -user = "test@example.com" -access_token = "test-access-token" -refresh_token = "test-refresh-token" -token_type = "Bearer" -expires_in = 1000 -[["Token Cache".scopes]] -scope = "all" - -[["Token Cache".scopes]] -scope = "openid" - - diff --git a/frappe/printing/doctype/print_format/test_records.json b/frappe/printing/doctype/print_format/test_records.json new file mode 100644 index 0000000000..c77238326b --- /dev/null +++ b/frappe/printing/doctype/print_format/test_records.json @@ -0,0 +1,9 @@ +[ + { + "doctype": "Print Format", + "name": "_Test Print Format 1", + "module": "Core", + "doc_type": "User", + "html": "" + } +] diff --git a/frappe/printing/doctype/print_format/test_records.toml b/frappe/printing/doctype/print_format/test_records.toml deleted file mode 100644 index 5d38137d62..0000000000 --- a/frappe/printing/doctype/print_format/test_records.toml +++ /dev/null @@ -1,6 +0,0 @@ -[["Print Format"]] -name = "_Test Print Format 1" -module = "Core" -doc_type = "User" -html = "" - diff --git a/frappe/website/doctype/blog_category/test_records.json b/frappe/website/doctype/blog_category/test_records.json new file mode 100644 index 0000000000..4bd4ac35b7 --- /dev/null +++ b/frappe/website/doctype/blog_category/test_records.json @@ -0,0 +1,17 @@ +[ + { + "doctype": "Blog Category", + "parent_website_route": "blog", + "title": "_Test Blog Category" + }, + { + "doctype": "Blog Category", + "parent_website_route": "blog", + "title": "_Test Blog Category 1" + }, + { + "doctype": "Blog Category", + "parent_website_route": "blog", + "title": "_Test Blog Category 2" + } +] \ No newline at end of file diff --git a/frappe/website/doctype/blog_category/test_records.toml b/frappe/website/doctype/blog_category/test_records.toml deleted file mode 100644 index 136b9783e8..0000000000 --- a/frappe/website/doctype/blog_category/test_records.toml +++ /dev/null @@ -1,12 +0,0 @@ -[["Blog Category"]] -parent_website_route = "blog" -title = "_Test Blog Category" - -[["Blog Category"]] -parent_website_route = "blog" -title = "_Test Blog Category 1" - -[["Blog Category"]] -parent_website_route = "blog" -title = "_Test Blog Category 2" - diff --git a/frappe/website/doctype/blog_post/test_records.json b/frappe/website/doctype/blog_post/test_records.json new file mode 100644 index 0000000000..4b29eadfa4 --- /dev/null +++ b/frappe/website/doctype/blog_post/test_records.json @@ -0,0 +1,38 @@ +[ + { + "blog_category": "-test-blog-category", + "blog_intro": "Test Blog Intro", + "blogger": "_Test Blogger", + "content": "Test Blog Content", + "doctype": "Blog Post", + "title": "_Test Blog Post", + "published": 1 + }, + { + "blog_category": "-test-blog-category-1", + "blog_intro": "Test Blog Intro", + "blogger": "_Test Blogger", + "content": "Test Blog Content", + "doctype": "Blog Post", + "title": "_Test Blog Post 1", + "published": 1 + }, + { + "blog_category": "-test-blog-category-1", + "blog_intro": "Test Blog Intro", + "blogger": "_Test Blogger 1", + "content": "Test Blog Content", + "doctype": "Blog Post", + "title": "_Test Blog Post 2", + "published": 0 + }, + { + "blog_category": "-test-blog-category-1", + "blog_intro": "Test Blog Intro", + "blogger": "_Test Blogger 2", + "content": "Test Blog Content", + "doctype": "Blog Post", + "title": "_Test Blog Post 3", + "published": 0 + } +] diff --git a/frappe/website/doctype/blog_post/test_records.toml b/frappe/website/doctype/blog_post/test_records.toml deleted file mode 100644 index 1b903290ff..0000000000 --- a/frappe/website/doctype/blog_post/test_records.toml +++ /dev/null @@ -1,32 +0,0 @@ -[["Blog Post"]] -blog_category = "-test-blog-category" -blog_intro = "Test Blog Intro" -blogger = "_Test Blogger" -content = "Test Blog Content" -title = "_Test Blog Post" -published = 1 - -[["Blog Post"]] -blog_category = "-test-blog-category-1" -blog_intro = "Test Blog Intro" -blogger = "_Test Blogger" -content = "Test Blog Content" -title = "_Test Blog Post 1" -published = 1 - -[["Blog Post"]] -blog_category = "-test-blog-category-1" -blog_intro = "Test Blog Intro" -blogger = "_Test Blogger 1" -content = "Test Blog Content" -title = "_Test Blog Post 2" -published = 0 - -[["Blog Post"]] -blog_category = "-test-blog-category-1" -blog_intro = "Test Blog Intro" -blogger = "_Test Blogger 2" -content = "Test Blog Content" -title = "_Test Blog Post 3" -published = 0 - diff --git a/frappe/website/doctype/blogger/test_records.json b/frappe/website/doctype/blogger/test_records.json new file mode 100644 index 0000000000..4ccb7fed32 --- /dev/null +++ b/frappe/website/doctype/blogger/test_records.json @@ -0,0 +1,17 @@ +[ + { + "doctype": "Blogger", + "full_name": "_Test Blogger", + "short_name": "_Test Blogger" + }, + { + "doctype": "Blogger", + "full_name": "_Test Blogger 1", + "short_name": "_Test Blogger 1" + }, + { + "doctype": "Blogger", + "full_name": "_Test Blogger 2", + "short_name": "_Test Blogger 2" + } +] \ No newline at end of file diff --git a/frappe/website/doctype/blogger/test_records.toml b/frappe/website/doctype/blogger/test_records.toml deleted file mode 100644 index ba36b5be12..0000000000 --- a/frappe/website/doctype/blogger/test_records.toml +++ /dev/null @@ -1,12 +0,0 @@ -[[Blogger]] -full_name = "_Test Blogger" -short_name = "_Test Blogger" - -[[Blogger]] -full_name = "_Test Blogger 1" -short_name = "_Test Blogger 1" - -[[Blogger]] -full_name = "_Test Blogger 2" -short_name = "_Test Blogger 2" - diff --git a/frappe/website/doctype/web_form/test_records.json b/frappe/website/doctype/web_form/test_records.json new file mode 100644 index 0000000000..7139ce25d7 --- /dev/null +++ b/frappe/website/doctype/web_form/test_records.json @@ -0,0 +1,52 @@ +[{ + "allow_comments": 0, + "allow_edit": 1, + "allow_multiple": 1, + "show_list": 1, + "doc_type": "Event", + "docstatus": 0, + "doctype": "Web Form", + "introduction_text": "Add events", + "login_required": 1, + "name": "manage-events", + "owner": "Administrator", + "page_name": "manage-events", + "published": 1, + "success_url": "/manage-events", + "title": "Manage Events", + "meta_title": "Test Meta Form Title", + "meta_description": "Test Meta Form Description", + "meta_image": "https://frappe.io/files/frappe.png", + "web_form_fields": [ + { + "doctype": "Web Form Field", + "fieldname": "subject", + "fieldtype": "Data", + "hidden": 0, + "idx": 1, + "label": "Title", + "read_only": 0, + "reqd": 1 + }, + { + "doctype": "Web Form Field", + "fieldname": "starts_on", + "fieldtype": "Date", + "hidden": 0, + "idx": 2, + "label": "Event Date", + "read_only": 0, + "reqd": 1 + }, + { + "doctype": "Web Form Field", + "fieldname": "description", + "fieldtype": "Text", + "hidden": 0, + "idx": 3, + "label": "Description", + "read_only": 0, + "reqd": 0 + } + ] +}] diff --git a/frappe/website/doctype/web_form/test_records.toml b/frappe/website/doctype/web_form/test_records.toml deleted file mode 100644 index 8223e39bb7..0000000000 --- a/frappe/website/doctype/web_form/test_records.toml +++ /dev/null @@ -1,49 +0,0 @@ -[["Web Form"]] -allow_comments = 0 -allow_edit = 1 -allow_multiple = 1 -show_list = 1 -doc_type = "Event" -docstatus = 0 -introduction_text = "Add events" -login_required = 1 -name = "manage-events" -owner = "Administrator" -page_name = "manage-events" -published = 1 -success_url = "/manage-events" -title = "Manage Events" -meta_title = "Test Meta Form Title" -meta_description = "Test Meta Form Description" -meta_image = "https://frappe.io/files/frappe.png" -[["Web Form".web_form_fields]] -doctype = "Web Form Field" -fieldname = "subject" -fieldtype = "Data" -hidden = 0 -idx = 1 -label = "Title" -read_only = 0 -reqd = 1 - -[["Web Form".web_form_fields]] -doctype = "Web Form Field" -fieldname = "starts_on" -fieldtype = "Date" -hidden = 0 -idx = 2 -label = "Event Date" -read_only = 0 -reqd = 1 - -[["Web Form".web_form_fields]] -doctype = "Web Form Field" -fieldname = "description" -fieldtype = "Text" -hidden = 0 -idx = 3 -label = "Description" -read_only = 0 -reqd = 0 - - diff --git a/frappe/website/doctype/web_page/test_records.json b/frappe/website/doctype/web_page/test_records.json new file mode 100644 index 0000000000..57d5e8282e --- /dev/null +++ b/frappe/website/doctype/web_page/test_records.json @@ -0,0 +1,35 @@ +[ + { + "doctype": "Web Page", + "main_section": "Test Content 1", + "published": 1, + "title": "Test Web Page 1" + }, + { + "doctype": "Web Page", + "main_section": "Test Content 2", + "route": "test-web-page-1/test-web-page-2", + "published": 1, + "title": "Test Web Page 2" + }, + { + "doctype": "Web Page", + "main_section": "Test Content 3", + "route": "test-web-page-1/test-web-page-3", + "published": 1, + "title": "Test Web Page 3" + }, + { + "doctype": "Web Page", + "main_section": "Test Content 4", + "published": 1, + "title": "Test Web Page 4" + }, + { + "doctype": "Web Page", + "main_section": "Test Content 5", + "route": "test-web-page-1/test-web-page-5", + "published": 1, + "title": "Test Web Page 5" + } +] \ No newline at end of file diff --git a/frappe/website/doctype/web_page/test_records.toml b/frappe/website/doctype/web_page/test_records.toml deleted file mode 100644 index 3ded76f684..0000000000 --- a/frappe/website/doctype/web_page/test_records.toml +++ /dev/null @@ -1,28 +0,0 @@ -[["Web Page"]] -main_section = "Test Content 1" -published = 1 -title = "Test Web Page 1" - -[["Web Page"]] -main_section = "Test Content 2" -route = "test-web-page-1/test-web-page-2" -published = 1 -title = "Test Web Page 2" - -[["Web Page"]] -main_section = "Test Content 3" -route = "test-web-page-1/test-web-page-3" -published = 1 -title = "Test Web Page 3" - -[["Web Page"]] -main_section = "Test Content 4" -published = 1 -title = "Test Web Page 4" - -[["Web Page"]] -main_section = "Test Content 5" -route = "test-web-page-1/test-web-page-5" -published = 1 -title = "Test Web Page 5" -