-
Notifications
You must be signed in to change notification settings - Fork 515
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #519 from pateljannat/fix-username
fix: remove space from username
- Loading branch information
Showing
5 changed files
with
45 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,14 +20,6 @@ def test_without_username(self): | |
user = new_user("Username", "[email protected]") | ||
self.assertTrue(user.username) | ||
|
||
def test_with_illegal_characters(self): | ||
user = new_user("Username$$", "[email protected]") | ||
self.assertEqual(user.username[:8], "username") | ||
|
||
def test_with_underscore_at_end(self): | ||
user = new_user("Username___", "[email protected]") | ||
self.assertNotEqual(user.username[-1], "_") | ||
|
||
def test_with_short_first_name(self): | ||
user = new_user("USN", "[email protected]") | ||
self.assertGreaterEqual(len(user.username), 4) | ||
|
@@ -37,8 +29,6 @@ def tearDownClass(cls) -> None: | |
users = [ | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
] | ||
frappe.db.delete("User", {"name": ["in", users]}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters