From 4b2ba96435447b984e5f402f85fb1248ffd9661b Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Fri, 19 May 2023 17:46:55 +0530 Subject: [PATCH] test: removed invalid tests --- lms/overrides/test_user.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lms/overrides/test_user.py b/lms/overrides/test_user.py index 5d1b9c03..2035f89d 100644 --- a/lms/overrides/test_user.py +++ b/lms/overrides/test_user.py @@ -20,14 +20,6 @@ class TestCustomUser(unittest.TestCase): user = new_user("Username", "test-without-username@example.com") self.assertTrue(user.username) - def test_with_illegal_characters(self): - user = new_user("Username$$", "test_with_illegal_characters@example.com") - self.assertEqual(user.username[:8], "username") - - def test_with_underscore_at_end(self): - user = new_user("Username___", "test_with_underscore_at_end@example.com") - self.assertNotEqual(user.username[-1], "_") - def test_with_short_first_name(self): user = new_user("USN", "test_with_short_first_name@example.com") self.assertGreaterEqual(len(user.username), 4) @@ -37,8 +29,6 @@ class TestCustomUser(unittest.TestCase): users = [ "test_with_basic_username@example.com", "test-without-username@example.com", - "test_with_illegal_characters@example.com", - "test_with_underscore_at_end@example.com", "test_with_short_first_name@example.com", ] frappe.db.delete("User", {"name": ["in", users]})