fix: resolve parser organizations from directory only
This commit is contained in:
@@ -45,6 +45,7 @@ from tests.apps.parsers.factories import (
|
||||
ParserLoadLogFactory,
|
||||
ProxyFactory,
|
||||
)
|
||||
from tests.apps.parsers.organization_helpers import create_directory_organization
|
||||
from tests.apps.user.factories import UserFactory
|
||||
from tests.utils.fixtures import fake
|
||||
|
||||
@@ -80,7 +81,7 @@ def _build_fns_zip_upload() -> SimpleUploadedFile:
|
||||
buffer = io.BytesIO()
|
||||
with zipfile.ZipFile(buffer, "w", compression=zipfile.ZIP_DEFLATED) as archive:
|
||||
ogrn = _digits(13)
|
||||
Organization.objects.create(
|
||||
create_directory_organization(
|
||||
name=f"ФНС {ogrn}",
|
||||
ogrn=ogrn,
|
||||
)
|
||||
@@ -98,7 +99,7 @@ def _build_fns_zip_upload() -> SimpleUploadedFile:
|
||||
|
||||
def _build_fns_excel_upload() -> SimpleUploadedFile:
|
||||
ogrn = _digits(13)
|
||||
Organization.objects.create(
|
||||
create_directory_organization(
|
||||
name=f"ФНС {ogrn}",
|
||||
ogrn=ogrn,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user