-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5fce7c7
commit bc9bc8f
Showing
2 changed files
with
67 additions
and
85 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 |
---|---|---|
|
@@ -2759,7 +2759,7 @@ def test_transfer_user_transfers_user_portfolio_roles_no_error_when_duplicates(s | |
|
||
messages.error.assert_not_called() | ||
|
||
# @less_console_noise_decorator | ||
@less_console_noise_decorator | ||
def test_transfer_user_transfers_domain_request_creator_and_investigator(self): | ||
"""Assert that domain request fields get transferred""" | ||
domain_request = completed_domain_request(user=self.user2, name="wasteland.gov", investigator=self.user2) | ||
|
@@ -2776,7 +2776,6 @@ def test_transfer_user_transfers_domain_request_creator_and_investigator(self): | |
self.assertEquals(domain_request.creator, self.user1) | ||
self.assertEquals(domain_request.investigator, self.user1) | ||
|
||
|
||
@less_console_noise_decorator | ||
def test_transfer_user_transfers_domain_information_creator(self): | ||
"""Assert that domain fields get transferred""" | ||
|
@@ -2867,7 +2866,7 @@ def test_transfer_user_deletes_old_user(self): | |
with self.assertRaises(User.DoesNotExist): | ||
self.user2.refresh_from_db() | ||
|
||
# @less_console_noise_decorator | ||
@less_console_noise_decorator | ||
def test_transfer_user_throws_transfer_and_delete_success_messages(self): | ||
"""Test that success messages for data transfer and user deletion are displayed.""" | ||
# Ensure the setup for VerifiedByStaff | ||
|
@@ -2892,8 +2891,8 @@ def test_transfer_user_throws_transfer_and_delete_success_messages(self): | |
mock_success_message.assert_any_call( | ||
ANY, | ||
( | ||
"Data transferred successfully for the following objects: ['Changed requestor " | ||
+ 'from "Furiosa Jabassa " to "Max Rokatanski " on [email protected]\']' | ||
"Data transferred successfully for the following objects: ['Transferred requestor " | ||
+ "from Furiosa Jabassa to Max Rokatanski ']" | ||
), | ||
) | ||
|
||
|
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