fix: resolve parser organizations from directory only
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user