test: replaced FrappeTestCase with UnitTestCase

This commit is contained in:
Jannat Patel
2024-10-10 16:20:53 +05:30
parent aba4c034fc
commit 675bcc8956
21 changed files with 41 additions and 41 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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"],

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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