update User factory to make username unique

This commit is contained in:
smilerz 2023-04-24 07:33:47 -05:00
parent c7b6253e04
commit b711ee5257
No known key found for this signature in database
GPG Key ID: 39444C7606D47126

View File

@ -81,6 +81,7 @@ class UserFactory(factory.django.DjangoModelFactory):
class Meta:
model = User
django_get_or_create = ('username', 'space',)
@register