fix(parsers): unblock source status and heavy product import
This commit is contained in:
@@ -40,6 +40,8 @@ from apps.parsers.models import (
|
||||
)
|
||||
from apps.parsers.services import ParserLoadLogService
|
||||
from apps.parsers.tasks import (
|
||||
INDUSTRIAL_PRODUCTS_SOFT_TIME_LIMIT_SECONDS,
|
||||
INDUSTRIAL_PRODUCTS_TIME_LIMIT_SECONDS,
|
||||
_move_to_dir,
|
||||
_process_fns_file_sync,
|
||||
_remove_lock,
|
||||
@@ -589,6 +591,16 @@ class SyncProcurementsTaskTestCase(TestCase):
|
||||
class MinpromtorgTasksTestCase(TestCase):
|
||||
"""Tests for Minpromtorg tasks."""
|
||||
|
||||
def test_parse_industrial_products_has_extended_time_limits(self):
|
||||
self.assertEqual(
|
||||
parse_industrial_products.soft_time_limit,
|
||||
INDUSTRIAL_PRODUCTS_SOFT_TIME_LIMIT_SECONDS,
|
||||
)
|
||||
self.assertEqual(
|
||||
parse_industrial_products.time_limit,
|
||||
INDUSTRIAL_PRODUCTS_TIME_LIMIT_SECONDS,
|
||||
)
|
||||
|
||||
def _add_minpromtorg_routes(self, server: TestHTTPServer):
|
||||
certificates_bytes, cert_rows = build_minpromtorg_certificates_excel(count=2)
|
||||
manufacturers_bytes, manuf_rows = build_minpromtorg_manufacturers_excel(count=2)
|
||||
|
||||
Reference in New Issue
Block a user