Release v1.0.0
Some checks failed
CI / Checks (push) Failing after 13m2s

This commit is contained in:
2025-08-20 21:00:50 +02:00
commit b4338e2769
401 changed files with 23576 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
from .association import AssociationFactory # noqa: F401,F403
from .save import SaveFactory # noqa: F401,F403

View File

@@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
from __future__ import annotations
import factory
from hotpocket_backend.apps.saves.models import Association
class AssociationFactory(factory.django.DjangoModelFactory):
account_uuid = None
deleted_at = None
archived_at = None
starred_at = None
target_meta = factory.LazyFunction(dict)
target_title = None
target_description = None
target = None
class Meta:
model = Association

View File

@@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
from __future__ import annotations
import hashlib
import factory
from hotpocket_backend.apps.saves.models import Save
class SaveFactory(factory.django.DjangoModelFactory):
account_uuid = None
deleted_at = None
key = factory.LazyAttribute(lambda obj: hashlib.sha256(obj.url.encode('utf-8')).hexdigest())
url = None
content = None
title = None
description = None
last_processed_at = None
is_netloc_banned = False
class Meta:
model = Save