fix: resolve parser organizations from directory only
Some checks failed
CI/CD Pipeline / Quality Gate (push) Failing after 32s
CI/CD Pipeline / Build and Push Images (push) Has been skipped
CI/CD Pipeline / Internal Notify (push) Successful in 0s
CI/CD Pipeline / Deploy Dev via Compose (push) Has been skipped

This commit is contained in:
2026-06-07 16:28:57 +02:00
parent 6ba8fa8d88
commit 802257a757
19 changed files with 184 additions and 83 deletions

View File

@@ -37,6 +37,8 @@ from organizations.models import (
OrganizationSourceRecord,
)
from tests.apps.parsers.organization_helpers import create_directory_organization
class DirectIngestionParserServicesTest(TestCase):
"""Parser save services should not write legacy parser record rows."""
@@ -52,7 +54,7 @@ class DirectIngestionParserServicesTest(TestCase):
("7707083809", "1027700132009"),
("7707083810", "1027700132010"),
):
Organization.objects.create(
create_directory_organization(
name=f"Справочник {inn or ogrn}",
inn=inn,
ogrn=ogrn,