You've already forked hotpocket
BTHLABS-58: Share Extension in Apple Apps
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
from .access_token import AccessTokenFactory # noqa: F401,F403
|
||||
from .account import AccountFactory # noqa: F401,F403
|
||||
from .auth_key import AuthKeyFactory # noqa: F401,F403
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import annotations
|
||||
|
||||
import uuid
|
||||
|
||||
import factory
|
||||
|
||||
from hotpocket_backend.apps.accounts.models import AuthKey
|
||||
|
||||
|
||||
class AuthKeyFactory(factory.django.DjangoModelFactory):
|
||||
account_uuid = None
|
||||
key = factory.LazyFunction(lambda: str(uuid.uuid4()))
|
||||
consumed_at = None
|
||||
|
||||
class Meta:
|
||||
model = AuthKey
|
||||
Reference in New Issue
Block a user