diff --git a/lms/job/doctype/lms_job_application/test_lms_job_application.py b/lms/job/doctype/lms_job_application/test_lms_job_application.py index acc28b34..532abbbf 100644 --- a/lms/job/doctype/lms_job_application/test_lms_job_application.py +++ b/lms/job/doctype/lms_job_application/test_lms_job_application.py @@ -2,8 +2,8 @@ # See license.txt # import frappe -from frappe.tests.utils import FrappeTestCase +from frappe.tests import UnitTestCase -class TestLMSJobApplication(FrappeTestCase): +class TestLMSJobApplication(UnitTestCase): pass diff --git a/lms/lms/doctype/batch_student/test_batch_student.py b/lms/lms/doctype/batch_student/test_batch_student.py index 88c576e4..8a5e8bb1 100644 --- a/lms/lms/doctype/batch_student/test_batch_student.py +++ b/lms/lms/doctype/batch_student/test_batch_student.py @@ -2,8 +2,8 @@ # See license.txt # import frappe -from frappe.tests.utils import FrappeTestCase +from frappe.tests import UnitTestCase -class TestBatchStudent(FrappeTestCase): +class TestBatchStudent(UnitTestCase): pass diff --git a/lms/lms/doctype/course_evaluator/test_course_evaluator.py b/lms/lms/doctype/course_evaluator/test_course_evaluator.py index cde3cf75..9b798a98 100644 --- a/lms/lms/doctype/course_evaluator/test_course_evaluator.py +++ b/lms/lms/doctype/course_evaluator/test_course_evaluator.py @@ -2,8 +2,8 @@ # See license.txt # import frappe -from frappe.tests.utils import FrappeTestCase +from frappe.tests import UnitTestCase -class TestCourseEvaluator(FrappeTestCase): +class TestCourseEvaluator(UnitTestCase): pass diff --git a/lms/lms/doctype/lms_assignment/test_lms_assignment.py b/lms/lms/doctype/lms_assignment/test_lms_assignment.py index e230054d..b2e2bfdb 100644 --- a/lms/lms/doctype/lms_assignment/test_lms_assignment.py +++ b/lms/lms/doctype/lms_assignment/test_lms_assignment.py @@ -2,8 +2,8 @@ # See license.txt # import frappe -from frappe.tests.utils import FrappeTestCase +from frappe.tests import UnitTestCase -class TestLMSAssignment(FrappeTestCase): +class TestLMSAssignment(UnitTestCase): pass diff --git a/lms/lms/doctype/lms_badge/test_lms_badge.py b/lms/lms/doctype/lms_badge/test_lms_badge.py index fc84ce8d..edcea67c 100644 --- a/lms/lms/doctype/lms_badge/test_lms_badge.py +++ b/lms/lms/doctype/lms_badge/test_lms_badge.py @@ -2,8 +2,8 @@ # See license.txt # import frappe -from frappe.tests.utils import FrappeTestCase +from frappe.tests import UnitTestCase -class TestLMSBadge(FrappeTestCase): +class TestLMSBadge(UnitTestCase): pass diff --git a/lms/lms/doctype/lms_badge_assignment/test_lms_badge_assignment.py b/lms/lms/doctype/lms_badge_assignment/test_lms_badge_assignment.py index 9a037eda..6dc92c62 100644 --- a/lms/lms/doctype/lms_badge_assignment/test_lms_badge_assignment.py +++ b/lms/lms/doctype/lms_badge_assignment/test_lms_badge_assignment.py @@ -2,8 +2,8 @@ # See license.txt # import frappe -from frappe.tests.utils import FrappeTestCase +from frappe.tests import UnitTestCase -class TestLMSBadgeAssignment(FrappeTestCase): +class TestLMSBadgeAssignment(UnitTestCase): pass diff --git a/lms/lms/doctype/lms_batch/test_lms_batch.py b/lms/lms/doctype/lms_batch/test_lms_batch.py index 6e1f2659..074981c0 100644 --- a/lms/lms/doctype/lms_batch/test_lms_batch.py +++ b/lms/lms/doctype/lms_batch/test_lms_batch.py @@ -2,8 +2,8 @@ # See license.txt # import frappe -from frappe.tests.utils import FrappeTestCase +from frappe.tests import UnitTestCase -class TestLMSClass(FrappeTestCase): +class TestLMSBatch(UnitTestCase): pass diff --git a/lms/lms/doctype/lms_batch_timetable/test_lms_batch_timetable.py b/lms/lms/doctype/lms_batch_timetable/test_lms_batch_timetable.py index 68754a5f..70614326 100644 --- a/lms/lms/doctype/lms_batch_timetable/test_lms_batch_timetable.py +++ b/lms/lms/doctype/lms_batch_timetable/test_lms_batch_timetable.py @@ -2,8 +2,8 @@ # See license.txt # import frappe -from frappe.tests.utils import FrappeTestCase +import unittest -class TestLMSBatchTimetable(FrappeTestCase): +class TestLMSBatchTimetable(unittest.TestCase): pass diff --git a/lms/lms/doctype/lms_category/test_lms_category.py b/lms/lms/doctype/lms_category/test_lms_category.py index 224a9e7c..1ba8de75 100644 --- a/lms/lms/doctype/lms_category/test_lms_category.py +++ b/lms/lms/doctype/lms_category/test_lms_category.py @@ -2,8 +2,8 @@ # See license.txt # import frappe -from frappe.tests.utils import FrappeTestCase +from frappe.tests import UnitTestCase -class TestLMSCategory(FrappeTestCase): +class TestLMSCategory(UnitTestCase): pass diff --git a/lms/lms/doctype/lms_certificate_evaluation/test_lms_certificate_evaluation.py b/lms/lms/doctype/lms_certificate_evaluation/test_lms_certificate_evaluation.py index 06e6996e..3dc5293e 100644 --- a/lms/lms/doctype/lms_certificate_evaluation/test_lms_certificate_evaluation.py +++ b/lms/lms/doctype/lms_certificate_evaluation/test_lms_certificate_evaluation.py @@ -2,8 +2,8 @@ # See license.txt # import frappe -from frappe.tests.utils import FrappeTestCase +from frappe.tests import UnitTestCase -class TestLMSCertificateEvaluation(FrappeTestCase): +class TestLMSCertificateEvaluation(UnitTestCase): pass diff --git a/lms/lms/doctype/lms_certificate_request/test_lms_certificate_request.py b/lms/lms/doctype/lms_certificate_request/test_lms_certificate_request.py index 87149242..804cad77 100644 --- a/lms/lms/doctype/lms_certificate_request/test_lms_certificate_request.py +++ b/lms/lms/doctype/lms_certificate_request/test_lms_certificate_request.py @@ -2,8 +2,8 @@ # See license.txt # import frappe -from frappe.tests.utils import FrappeTestCase +from frappe.tests import UnitTestCase -class TestLMSCertificateRequest(FrappeTestCase): +class TestLMSCertificateRequest(UnitTestCase): pass diff --git a/lms/lms/doctype/lms_live_class/test_lms_live_class.py b/lms/lms/doctype/lms_live_class/test_lms_live_class.py index b169369a..9345684d 100644 --- a/lms/lms/doctype/lms_live_class/test_lms_live_class.py +++ b/lms/lms/doctype/lms_live_class/test_lms_live_class.py @@ -2,8 +2,8 @@ # See license.txt # import frappe -from frappe.tests.utils import FrappeTestCase +from frappe.tests import UnitTestCase -class TestLMSLiveClass(FrappeTestCase): +class TestLMSLiveClass(UnitTestCase): pass diff --git a/lms/lms/doctype/lms_payment/test_lms_payment.py b/lms/lms/doctype/lms_payment/test_lms_payment.py index 3589140d..15c12c83 100644 --- a/lms/lms/doctype/lms_payment/test_lms_payment.py +++ b/lms/lms/doctype/lms_payment/test_lms_payment.py @@ -2,8 +2,8 @@ # See license.txt # import frappe -from frappe.tests.utils import FrappeTestCase +from frappe.tests import UnitTestCase -class TestLMSPayment(FrappeTestCase): +class TestLMSPayment(UnitTestCase): pass diff --git a/lms/lms/doctype/lms_question/test_lms_question.py b/lms/lms/doctype/lms_question/test_lms_question.py index 0832daa9..e16f21bb 100644 --- a/lms/lms/doctype/lms_question/test_lms_question.py +++ b/lms/lms/doctype/lms_question/test_lms_question.py @@ -2,8 +2,8 @@ # See license.txt # import frappe -from frappe.tests.utils import FrappeTestCase +from frappe.tests import UnitTestCase -class TestLMSQuestion(FrappeTestCase): +class TestLMSQuestion(UnitTestCase): pass diff --git a/lms/lms/doctype/lms_quiz/lms_quiz.py b/lms/lms/doctype/lms_quiz/lms_quiz.py index 82d9dc06..6ce5a4ae 100644 --- a/lms/lms/doctype/lms_quiz/lms_quiz.py +++ b/lms/lms/doctype/lms_quiz/lms_quiz.py @@ -113,7 +113,7 @@ def quiz_summary(quiz, results): result["question"] = question_details.question_detail result["marks_out_of"] = question_details.marks - quiz_details = frappe.get_doc( + quiz_details = frappe.db.get_value( "LMS Quiz", quiz, ["total_marks", "passing_percentage", "lesson", "course"], diff --git a/lms/lms/doctype/lms_sidebar_item/test_lms_sidebar_item.py b/lms/lms/doctype/lms_sidebar_item/test_lms_sidebar_item.py index 2747cc91..858d9a95 100644 --- a/lms/lms/doctype/lms_sidebar_item/test_lms_sidebar_item.py +++ b/lms/lms/doctype/lms_sidebar_item/test_lms_sidebar_item.py @@ -2,8 +2,8 @@ # See license.txt # import frappe -from frappe.tests.utils import FrappeTestCase +from frappe.tests import UnitTestCase -class TestLMSSidebarItem(FrappeTestCase): +class TestLMSSidebarItem(UnitTestCase): pass diff --git a/lms/lms/doctype/lms_source/test_lms_source.py b/lms/lms/doctype/lms_source/test_lms_source.py index 99b7e97f..7017c13a 100644 --- a/lms/lms/doctype/lms_source/test_lms_source.py +++ b/lms/lms/doctype/lms_source/test_lms_source.py @@ -2,8 +2,8 @@ # See license.txt # import frappe -from frappe.tests.utils import FrappeTestCase +from frappe.tests import UnitTestCase -class TestLMSSource(FrappeTestCase): +class TestLMSSource(UnitTestCase): pass diff --git a/lms/lms/doctype/lms_timetable_legend/test_lms_timetable_legend.py b/lms/lms/doctype/lms_timetable_legend/test_lms_timetable_legend.py index 816b1793..1ab48cca 100644 --- a/lms/lms/doctype/lms_timetable_legend/test_lms_timetable_legend.py +++ b/lms/lms/doctype/lms_timetable_legend/test_lms_timetable_legend.py @@ -2,8 +2,8 @@ # See license.txt # import frappe -from frappe.tests.utils import FrappeTestCase +from frappe.tests import UnitTestCase -class TestLMSTimetableLegend(FrappeTestCase): +class TestLMSTimetableLegend(UnitTestCase): pass diff --git a/lms/lms/doctype/lms_timetable_template/test_lms_timetable_template.py b/lms/lms/doctype/lms_timetable_template/test_lms_timetable_template.py index 090d1a58..0d651dfa 100644 --- a/lms/lms/doctype/lms_timetable_template/test_lms_timetable_template.py +++ b/lms/lms/doctype/lms_timetable_template/test_lms_timetable_template.py @@ -2,8 +2,8 @@ # See license.txt # import frappe -from frappe.tests.utils import FrappeTestCase +from frappe.tests import UnitTestCase -class TestLMSTimetableTemplate(FrappeTestCase): +class TestLMSTimetableTemplate(UnitTestCase): pass diff --git a/lms/lms/doctype/payment_country/test_payment_country.py b/lms/lms/doctype/payment_country/test_payment_country.py index 994c246d..05756059 100644 --- a/lms/lms/doctype/payment_country/test_payment_country.py +++ b/lms/lms/doctype/payment_country/test_payment_country.py @@ -2,8 +2,8 @@ # See license.txt # import frappe -from frappe.tests.utils import FrappeTestCase +from frappe.tests import UnitTestCase -class TestPaymentCountry(FrappeTestCase): +class TestPaymentCountry(UnitTestCase): pass diff --git a/lms/lms/doctype/zoom_settings/test_zoom_settings.py b/lms/lms/doctype/zoom_settings/test_zoom_settings.py index 3162d3dc..ed2b3b1a 100644 --- a/lms/lms/doctype/zoom_settings/test_zoom_settings.py +++ b/lms/lms/doctype/zoom_settings/test_zoom_settings.py @@ -2,8 +2,8 @@ # See license.txt # import frappe -from frappe.tests.utils import FrappeTestCase +from frappe.tests import UnitTestCase -class TestZoomSettings(FrappeTestCase): +class TestZoomSettings(UnitTestCase): pass