replace [0]
by .get()
for a more robust test
This commit is contained in:
parent
27fc356045
commit
f105b17e3f
1 changed files with 1 additions and 1 deletions
|
@ -29,6 +29,6 @@ class TestUserCreation(TestCase):
|
|||
User.objects
|
||||
.filter(username=data["username"])
|
||||
.values(*user_data.keys())
|
||||
[0]
|
||||
.get()
|
||||
)
|
||||
self.assertEqual(user_data, user)
|
||||
|
|
Loading…
Reference in a new issue