Skip to content

Commit

Permalink
Create random user
Browse files Browse the repository at this point in the history
  • Loading branch information
knightebsuku committed Feb 3, 2025
1 parent fbf71a2 commit 4c7dc84
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/factory.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
from factory.django import DjangoModelFactory
from factory import SubFactory
from factory import SubFactory, Sequence

from django.contrib.auth.models import User
from umsebenzi.models import Project, Task
from umsebenzi.enums import Issue, TaskStatus


class UserFactory(DjangoModelFactory):
username = Sequence(lambda n: 'user%d' % n)

class Meta:
model = User

Expand Down

0 comments on commit 4c7dc84

Please sign in to comment.