[test] Fixed physician test cases (#11347)

This commit is contained in:
Nabin Hait 2017-10-26 14:33:28 +05:30 committed by GitHub
parent 52909b73bb
commit aa7896f1e1
2 changed files with 10 additions and 2 deletions

View File

@ -15,7 +15,7 @@ class TestPhysician(unittest.TestCase):
def test_schedule_and_time(self):
physician = frappe.new_doc('Physician')
physician.first_name = '_Testdoctor2'
physician.physician_schedule = '_Test Testdoctor Schedule'
physician.physician_schedule = '_Testdoctor2 Schedule'
self.assertRaises(frappe.ValidationError, physician.insert)
@ -24,7 +24,7 @@ class TestPhysician(unittest.TestCase):
self.assertRaises(frappe.ValidationError, physician.insert)
physician.physician_schedule = '_Test Testdoctor Schedule'
physician.physician_schedule = '_Testdoctor2 Schedule'
physician.time_per_appointment = 15
physician.insert()

View File

@ -0,0 +1,8 @@
[
{
"schedule_name": "_Testdoctor1 Schedule"
},
{
"schedule_name": "_Testdoctor2 Schedule"
}
]