fix: resolve parser organizations from directory only
This commit is contained in:
@@ -12,6 +12,7 @@ from apps.parsers.services import (
|
||||
from django.test import TestCase
|
||||
from organizations.models import Organization
|
||||
|
||||
from tests.apps.parsers.organization_helpers import create_directory_organization
|
||||
from tests.utils.fixtures import fake
|
||||
|
||||
|
||||
@@ -32,7 +33,7 @@ def _form_code() -> str:
|
||||
|
||||
|
||||
def _create_registry_organization(*, inn: str, ogrn: str) -> Organization:
|
||||
return Organization.objects.create(
|
||||
return create_directory_organization(
|
||||
name=fake.company(),
|
||||
ogrn=ogrn,
|
||||
inn=inn,
|
||||
|
||||
Reference in New Issue
Block a user