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

@@ -14,6 +14,7 @@ from apps.parsers.services import ParserLoadLogService, ProcurementService
from django.test import TestCase, override_settings
from organizations.models import Organization, OrganizationSourceRecord
from tests.apps.parsers.organization_helpers import create_directory_organization
from tests.utils import TestHTTPServer
from tests.utils.fixtures import build_zakupki_xml, build_zip, fake
@@ -44,7 +45,7 @@ def _add_zakupki_zip(
) -> int:
xml_bytes, rows = build_zakupki_xml(count=count)
for row in rows:
Organization.objects.create(
create_directory_organization(
name=row.customer_name,
inn=row.customer_inn,
kpp=row.customer_kpp,