feat: use authoritative organization directory
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
"""Tests for parsers services."""
|
||||
|
||||
from datetime import timedelta
|
||||
import unittest
|
||||
from datetime import timedelta
|
||||
from unittest.mock import patch
|
||||
from urllib.parse import urlparse
|
||||
|
||||
@@ -35,9 +35,9 @@ from apps.parsers.services import (
|
||||
ProxyService,
|
||||
ProxyToolsSyncService,
|
||||
)
|
||||
from apps.registers.models import Organization
|
||||
from django.test import TestCase, override_settings, tag
|
||||
from django.utils import timezone
|
||||
from organizations.models import Organization
|
||||
|
||||
from tests.utils import TestHTTPServer
|
||||
from tests.utils.fixtures import build_minpromtorg_certificates_excel, fake
|
||||
@@ -62,11 +62,11 @@ def _proxy_address() -> str:
|
||||
|
||||
def _create_registry_organization(*, inn: str, ogrn: str) -> Organization:
|
||||
return Organization.objects.create(
|
||||
pn_name=fake.company(),
|
||||
mn_ogrn=int(ogrn),
|
||||
mn_inn=int(inn),
|
||||
in_kpp=int(_digits(9)),
|
||||
mn_okpo=_digits(8),
|
||||
name=fake.company(),
|
||||
ogrn=ogrn,
|
||||
inn=inn,
|
||||
kpp=_digits(9),
|
||||
okpo=_digits(8),
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user