revert: restore JSON files (#28717)
* Revert: bring back JSON files * chore: re-apply changes to new files * chore: remove old TOML files * chore: delete empty files
This commit is contained in:
parent
fcd79d7075
commit
60bc472ab6
49 changed files with 578 additions and 467 deletions
39
frappe/contacts/doctype/contact/test_records.json
Normal file
39
frappe/contacts/doctype/contact/test_records.json
Normal file
|
|
@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
|
@ -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
|
||||
|
||||
|
||||
8
frappe/contacts/doctype/salutation/test_records.json
Normal file
8
frappe/contacts/doctype/salutation/test_records.json
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
[
|
||||
{
|
||||
"salutation": "Mr"
|
||||
},
|
||||
{
|
||||
"salutation": "Mrs"
|
||||
}
|
||||
]
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
[[Salutation]]
|
||||
salutation = "Mr"
|
||||
|
||||
[[Salutation]]
|
||||
salutation = "Mrs"
|
||||
|
||||
10
frappe/core/doctype/communication/test_records.json
Normal file
10
frappe/core/doctype/communication/test_records.json
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[
|
||||
{
|
||||
"doctype": "Communication",
|
||||
"name": "_Test Communication 1",
|
||||
"subject": "Test Subject",
|
||||
"sent_or_received": "Received",
|
||||
"parenttype": "User",
|
||||
"parent": "Administrator"
|
||||
}
|
||||
]
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
[[Communication]]
|
||||
name = "_Test Communication 1"
|
||||
subject = "Test Subject"
|
||||
sent_or_received = "Received"
|
||||
parenttype = "User"
|
||||
parent = "Administrator"
|
||||
|
||||
1
frappe/core/doctype/docshare/test_records.json
Normal file
1
frappe/core/doctype/docshare/test_records.json
Normal file
|
|
@ -0,0 +1 @@
|
|||
[]
|
||||
1
frappe/core/doctype/page/test_records.json
Normal file
1
frappe/core/doctype/page/test_records.json
Normal file
|
|
@ -0,0 +1 @@
|
|||
[]
|
||||
10
frappe/core/doctype/report/test_records.json
Normal file
10
frappe/core/doctype/report/test_records.json
Normal file
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
[[Report]]
|
||||
name = "_Test Report 1"
|
||||
report_name = "_Test Report 1"
|
||||
report_type = "Query Report"
|
||||
is_standard = "No"
|
||||
ref_doctype = "Event"
|
||||
|
||||
22
frappe/core/doctype/role/test_records.json
Normal file
22
frappe/core/doctype/role/test_records.json
Normal file
|
|
@ -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
|
||||
}
|
||||
]
|
||||
|
|
@ -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
|
||||
|
||||
95
frappe/core/doctype/user/test_records.json
Normal file
95
frappe/core/doctype/user/test_records.json
Normal file
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
|
@ -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"
|
||||
|
||||
|
||||
1
frappe/core/doctype/version/test_records.json
Normal file
1
frappe/core/doctype/version/test_records.json
Normal file
|
|
@ -0,0 +1 @@
|
|||
[]
|
||||
1
frappe/custom/doctype/custom_field/test_records.json
Normal file
1
frappe/custom/doctype/custom_field/test_records.json
Normal file
|
|
@ -0,0 +1 @@
|
|||
[]
|
||||
10
frappe/custom/doctype/property_setter/test_records.json
Normal file
10
frappe/custom/doctype/property_setter/test_records.json
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[
|
||||
{
|
||||
"doc_type": "User",
|
||||
"doctype_or_field": "DocField",
|
||||
"field_name": "location",
|
||||
"property": "in_list_view",
|
||||
"property_type": "Check",
|
||||
"value": "1"
|
||||
}
|
||||
]
|
||||
|
|
@ -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"
|
||||
|
||||
23
frappe/desk/doctype/event/test_records.json
Normal file
23
frappe/desk/doctype/event/test_records.json
Normal file
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
|
|
@ -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"
|
||||
|
||||
7
frappe/desk/doctype/note/test_records.json
Normal file
7
frappe/desk/doctype/note/test_records.json
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[
|
||||
{
|
||||
"doctype": "Note",
|
||||
"name": "_Test Note 1",
|
||||
"title": "Test Note Title"
|
||||
}
|
||||
]
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[[Note]]
|
||||
name = "_Test Note 1"
|
||||
title = "Test Note Title"
|
||||
|
||||
29
frappe/email/doctype/email_account/test_records.json
Normal file
29
frappe/email/doctype/email_account/test_records.json
Normal file
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
|
|
@ -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"
|
||||
|
||||
32
frappe/email/doctype/email_domain/test_records.json
Normal file
32
frappe/email/doctype/email_domain/test_records.json
Normal file
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
|
|
@ -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"
|
||||
|
||||
6
frappe/email/doctype/email_group/test_records.json
Normal file
6
frappe/email/doctype/email_group/test_records.json
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
[
|
||||
{
|
||||
"doctype": "Email Group",
|
||||
"title": "_Test Email Group"
|
||||
}
|
||||
]
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
[["Email Group"]]
|
||||
title = "_Test Email Group"
|
||||
|
||||
77
frappe/email/doctype/notification/test_records.json
Normal file
77
frappe/email/doctype/notification/test_records.json
Normal file
|
|
@ -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 }}" }
|
||||
]
|
||||
}
|
||||
]
|
||||
|
|
@ -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 }}"
|
||||
|
||||
|
||||
6
frappe/geo/doctype/country/test_records.json
Normal file
6
frappe/geo/doctype/country/test_records.json
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
[
|
||||
{
|
||||
"country_name": "_Test Country",
|
||||
"doctype": "Country"
|
||||
}
|
||||
]
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
[[Country]]
|
||||
country_name = "_Test Country"
|
||||
|
||||
1
frappe/geo/doctype/currency/test_records.json
Normal file
1
frappe/geo/doctype/currency/test_records.json
Normal file
|
|
@ -0,0 +1 @@
|
|||
[]
|
||||
13
frappe/integrations/doctype/connected_app/test_records.json
Normal file
13
frappe/integrations/doctype/connected_app/test_records.json
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
[
|
||||
{
|
||||
"doctype": "Connected App",
|
||||
"provider_name": "frappe",
|
||||
"client_id": "test_client_id",
|
||||
"client_secret": "test_client_secret",
|
||||
"scopes": [
|
||||
{
|
||||
"scope": "all"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
[["Connected App"]]
|
||||
provider_name = "frappe"
|
||||
client_id = "test_client_id"
|
||||
client_secret = "test_client_secret"
|
||||
[["Connected App".scopes]]
|
||||
scope = "all"
|
||||
|
||||
|
||||
18
frappe/integrations/doctype/token_cache/test_records.json
Normal file
18
frappe/integrations/doctype/token_cache/test_records.json
Normal file
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
|
@ -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"
|
||||
|
||||
|
||||
9
frappe/printing/doctype/print_format/test_records.json
Normal file
9
frappe/printing/doctype/print_format/test_records.json
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
[
|
||||
{
|
||||
"doctype": "Print Format",
|
||||
"name": "_Test Print Format 1",
|
||||
"module": "Core",
|
||||
"doc_type": "User",
|
||||
"html": ""
|
||||
}
|
||||
]
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
[["Print Format"]]
|
||||
name = "_Test Print Format 1"
|
||||
module = "Core"
|
||||
doc_type = "User"
|
||||
html = ""
|
||||
|
||||
17
frappe/website/doctype/blog_category/test_records.json
Normal file
17
frappe/website/doctype/blog_category/test_records.json
Normal file
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
|
|
@ -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"
|
||||
|
||||
38
frappe/website/doctype/blog_post/test_records.json
Normal file
38
frappe/website/doctype/blog_post/test_records.json
Normal file
|
|
@ -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
|
||||
}
|
||||
]
|
||||
|
|
@ -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
|
||||
|
||||
17
frappe/website/doctype/blogger/test_records.json
Normal file
17
frappe/website/doctype/blogger/test_records.json
Normal file
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
|
|
@ -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"
|
||||
|
||||
52
frappe/website/doctype/web_form/test_records.json
Normal file
52
frappe/website/doctype/web_form/test_records.json
Normal file
|
|
@ -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
|
||||
}
|
||||
]
|
||||
}]
|
||||
|
|
@ -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
|
||||
|
||||
|
||||
35
frappe/website/doctype/web_page/test_records.json
Normal file
35
frappe/website/doctype/web_page/test_records.json
Normal file
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
|
|
@ -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"
|
||||
|
||||
Loading…
Add table
Reference in a new issue