feat(external-data): add information security registry entries endpoint
This commit is contained in:
@@ -6,6 +6,7 @@ from apps.external_data.models import (
|
||||
IndustrialProduct,
|
||||
ProsecutorCheck,
|
||||
PublicProcurement,
|
||||
InformationSecurityRegistryEntry,
|
||||
)
|
||||
from faker import Faker
|
||||
|
||||
@@ -68,3 +69,17 @@ class ArbitrationCaseFactory(factory.django.DjangoModelFactory):
|
||||
party_role = "defendant"
|
||||
status = "hearing_scheduled"
|
||||
decision_date = factory.LazyAttribute(lambda _: fake.date_this_year())
|
||||
|
||||
|
||||
class InformationSecurityRegistryEntryFactory(
|
||||
factory.django.DjangoModelFactory
|
||||
):
|
||||
class Meta:
|
||||
model = InformationSecurityRegistryEntry
|
||||
|
||||
organization = factory.SubFactory(OrganizationFactory)
|
||||
registry_name = "Реестр лицензий на деятельность по технической защите конфиденциальной информации"
|
||||
presence_status = "present"
|
||||
entry_number = "77-001234"
|
||||
issued_at = factory.LazyAttribute(lambda _: fake.date_this_year())
|
||||
expires_at = factory.LazyAttribute(lambda _: fake.date_this_year())
|
||||
|
||||
Reference in New Issue
Block a user