fix: resolve parser organizations from directory only
This commit is contained in:
@@ -19,6 +19,7 @@ from tests.apps.parsers.factories import (
|
||||
ParserLoadLogFactory,
|
||||
ProcurementRecordFactory,
|
||||
)
|
||||
from tests.apps.parsers.organization_helpers import create_directory_organization
|
||||
from tests.apps.user.factories import UserFactory
|
||||
from tests.utils.fixtures import fake
|
||||
|
||||
@@ -36,12 +37,12 @@ class SourcesApiE2ETest(APITestCase):
|
||||
shared_inn = _digits(10)
|
||||
shared_ogrn = _digits(13)
|
||||
report_ogrn = _digits(13)
|
||||
Organization.objects.create(
|
||||
create_directory_organization(
|
||||
name="Shared Organization",
|
||||
inn=shared_inn,
|
||||
ogrn=shared_ogrn,
|
||||
)
|
||||
Organization.objects.create(
|
||||
create_directory_organization(
|
||||
name="Financial Organization",
|
||||
ogrn=report_ogrn,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user