fix: resolve parser organizations from directory only
This commit is contained in:
@@ -24,6 +24,7 @@ from rest_framework import status
|
||||
from rest_framework.test import APITestCase
|
||||
|
||||
from tests.apps.user.factories import UserFactory
|
||||
from tests.apps.parsers.organization_helpers import create_directory_organization
|
||||
from tests.utils.fixtures import fake
|
||||
|
||||
|
||||
@@ -55,7 +56,7 @@ def _build_fns_zip_bytes(file_map: dict[str, bytes]) -> bytes:
|
||||
|
||||
|
||||
def _ensure_directory_organization(*, ogrn: str) -> Organization:
|
||||
return Organization.objects.create(
|
||||
return create_directory_organization(
|
||||
name=f"ФНС {ogrn}",
|
||||
ogrn=ogrn,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user