Browse Source

fix(test): test and mandatory in blog post

version-14
Rushabh Mehta 6 years ago
parent
commit
9a3bafdcfd
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      frappe/tests/test_dynamic_links.py
  2. +2
    -2
      frappe/website/doctype/blog_post/blog_post.json

+ 2
- 2
frappe/tests/test_dynamic_links.py View File

@@ -36,10 +36,10 @@ class TestDynamicLinks(unittest.TestCase):
}).insert()
event.add_comment('Comment', 'test')

self.assertTrue(frappe.get_all('Communication',
self.assertTrue(frappe.get_all('Comment',
filters={'reference_doctype':'Event', 'reference_name':event.name}))
event.delete()
self.assertFalse(frappe.get_all('Communication',
self.assertFalse(frappe.get_all('Comment',
filters={'reference_doctype':'Event', 'reference_name':event.name}))

def test_custom_fields(self):


+ 2
- 2
frappe/website/doctype/blog_post/blog_post.json View File

@@ -354,7 +354,7 @@
"read_only": 0,
"remember_last_selected_value": 0,
"report_hide": 0,
"reqd": 1,
"reqd": 0,
"search_index": 0,
"set_only_once": 0,
"translatable": 0,
@@ -470,7 +470,7 @@
"issingle": 0,
"istable": 0,
"max_attachments": 5,
"modified": "2019-02-01 16:34:03.418705",
"modified": "2019-02-09 11:27:05.619819",
"modified_by": "Administrator",
"module": "Website",
"name": "Blog Post",


Loading…
Cancel
Save