fix(parsers): unblock source status and heavy product import
All checks were successful
CI/CD Pipeline / Quality Gate (push) Successful in 19s
CI/CD Pipeline / Build and Push Images (push) Successful in 6s
CI/CD Pipeline / Internal Notify (push) Successful in 1s
CI/CD Pipeline / Deploy Dev in Dokploy (push) Successful in 1s

This commit is contained in:
2026-04-28 22:51:52 +02:00
parent e921f4b204
commit 01387ae13b
6 changed files with 182 additions and 25 deletions

View File

@@ -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)