-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update code that uses yaml and XML functions
- Loading branch information
1 parent
0641209
commit 07009f0
Showing
5 changed files
with
18 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
class TestUpdateUserNameCommand(TestCase): | ||
def setUp(self): | ||
self.user = User.objects.create_user( | ||
username='WilleMarcel', | ||
username='rosrever', | ||
email='[email protected]', | ||
password='password' | ||
) | ||
|
@@ -37,14 +37,14 @@ def test_command(self): | |
call_command('update_user_names') | ||
self.user.refresh_from_db() | ||
self.user_2.refresh_from_db() | ||
self.assertEqual(self.user.name, 'Wille Marcel') | ||
self.assertEqual(self.user.name, 'rosrever') | ||
self.assertEqual(self.user_2.name, 'narceliodesa') | ||
|
||
|
||
class TestClearTokensCommand(TestCase): | ||
def setUp(self): | ||
self.user = User.objects.create_user( | ||
username='WilleMarcel', | ||
username='rosrever', | ||
email='[email protected]', | ||
password='password' | ||
) | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
class TestUpdateUserName(TestCase): | ||
def setUp(self): | ||
self.user = User.objects.create_user( | ||
username='WilleMarcel', | ||
username='rosrever', | ||
email='[email protected]', | ||
password='password' | ||
) | ||
|
@@ -35,7 +35,7 @@ def setUp(self): | |
def test_update_user_name(self): | ||
update_user_name(self.user) | ||
update_user_name(self.user_2) | ||
self.assertEqual(self.user.name, 'Wille Marcel') | ||
self.assertEqual(self.user.name, 'rosrever') | ||
self.assertEqual(self.user_2.name, 'narceliodesa') | ||
|
||
def test_user_with_wrong_uid(self): | ||
|