-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(fix)[User] replace OWNER with ADMIN
- Loading branch information
1 parent
98ac9d5
commit 0c8eb2e
Showing
7 changed files
with
17 additions
and
28 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
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
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ def test_dev_login(self): | |
email="[email protected]", | ||
first_name="Firstname test", | ||
last_name="Lastname test", | ||
group=UserGroup.OWNER, | ||
group=UserGroup.ADMIN, | ||
is_active=True, | ||
theme=UserTheme.LIGHT_THEME, | ||
lang=UserLanguage.EN, | ||
|
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 |
---|---|---|
|
@@ -66,14 +66,14 @@ def test_deactivate_user(self): | |
user.email = "[email protected]" | ||
user.first_name = "Michel" | ||
user.last_name = "Pol" | ||
user.group = UserGroup.OWNER | ||
user.group = UserGroup.ADMIN | ||
user.save() | ||
|
||
user2: User = User() | ||
user2.email = "[email protected]" | ||
user2.first_name = "Jack" | ||
user2.last_name = "Beauregard" | ||
user2.group = UserGroup.OWNER | ||
user2.group = UserGroup.ADMIN | ||
user2.save() | ||
|
||
user3: User = User() | ||
|
@@ -86,7 +86,7 @@ def test_deactivate_user(self): | |
UserService.deactivate_user(user.id) | ||
UserService.deactivate_user(user3.id) | ||
|
||
# can't deactivate the last owner | ||
# can't deactivate the last admin | ||
self.assertRaises(BadRequestException, UserService.deactivate_user, user2.id) | ||
|
||
def test_user_search(self): | ||
|