fix: resolve parser organizations from directory only
This commit is contained in:
@@ -50,6 +50,7 @@ from .factories import (
|
||||
ParserLoadLogFactory,
|
||||
ProxyFactory,
|
||||
)
|
||||
from .organization_helpers import create_directory_organization
|
||||
|
||||
|
||||
def _digits(length: int) -> str:
|
||||
@@ -61,7 +62,7 @@ def _proxy_address() -> 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