diff --git a/lms/test_auth.py b/lms/test_auth.py index 13bba5d4..7c695924 100644 --- a/lms/test_auth.py +++ b/lms/test_auth.py @@ -1,13 +1,13 @@ import frappe from frappe.tests.test_api import FrappeAPITestCase +from lms.auth import authenticate from lms.lms.test_helpers import BaseTestUtils -class TestAuth(FrappeAPITestCase, BaseTestUtils): +class TestAuth(BaseTestUtils, FrappeAPITestCase): def setUp(self): super().setUp() - BaseTestUtils.setUp(self) self.normal_user = self._create_user("normal-user@example.com", "Normal", "User", ["LMS Student"]) def test_allowed_path(self): @@ -23,4 +23,4 @@ class TestAuth(FrappeAPITestCase, BaseTestUtils): frappe.session.user = "Administrator" def tearDown(self): - BaseTestUtils.tearDown(self) + super().tearDown()