Skip to content

Commit

Permalink
[#293] update TokenAuthFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonny Bakker committed Nov 29, 2024
1 parent f4fe3d1 commit bca6062
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/openklant/components/token/tests/factories/token.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
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()}")
contact_person = factory.Faker("name")
email = factory.Faker("email")
organization = factory.Faker("name")
application = factory.Faker("word")
administration = factory.Faker("word")

class Meta:
model = TokenAuth

0 comments on commit bca6062

Please sign in to comment.