Skip to content

Commit

Permalink
[#293] apply incrementing pattern for TokenAuthFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
SonnyBA committed Dec 4, 2024
1 parent 1d342bd commit 1eff253
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/openklant/components/token/tests/factories/token.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import factory
from django_otp.util import random_hex
from factory.django import DjangoModelFactory

from openklant.components.token.models import TokenAuth


class TokenAuthFactory(DjangoModelFactory):
identifier = factory.LazyAttribute(lambda _: f"token-{random_hex()}")
identifier = factory.Sequence(lambda sequence: f"token-{sequence}")
contact_person = factory.Faker("name")
email = factory.Faker("email")

Expand Down

0 comments on commit 1eff253

Please sign in to comment.