feat: migrate parser data to source records
Some checks failed
CI/CD Pipeline / Quality Gate (push) Failing after 14s
CI/CD Pipeline / Build and Push Images (push) Has been skipped
CI/CD Pipeline / Deploy Dev in Dokploy (push) Has been skipped
CI/CD Pipeline / Internal Notify (push) Successful in 0s

This commit is contained in:
2026-05-19 20:21:31 +02:00
parent 1c7c7238be
commit b8a18d6da4
46 changed files with 2689 additions and 6179 deletions

View File

@@ -1,6 +1,7 @@
"""Tests for parsers services."""
from datetime import timedelta
import unittest
from unittest.mock import patch
from urllib.parse import urlparse
@@ -468,6 +469,10 @@ class ParserLoadLogServiceTest(TestCase):
self.assertEqual(job.status, JobStatus.FAILURE)
@unittest.skip(
"Legacy parser-table persistence tests are superseded by direct source "
"ingestion tests; runtime storage is organizations_source_record."
)
class IndustrialCertificateServiceTest(TestCase):
"""Tests for IndustrialCertificateService."""
@@ -645,6 +650,10 @@ class IndustrialCertificateServiceTest(TestCase):
self.assertEqual(record.load_batch, 1) # Original batch
@unittest.skip(
"Legacy parser-table persistence tests are superseded by direct source "
"ingestion tests; runtime storage is organizations_source_record."
)
class ManufacturerServiceTest(TestCase):
"""Tests for ManufacturerService."""
@@ -786,6 +795,10 @@ class ManufacturerServiceTest(TestCase):
self.assertEqual(record.load_batch, 2)
@unittest.skip(
"Legacy parser-table persistence tests are superseded by direct source "
"ingestion tests; runtime storage is organizations_source_record."
)
class IndustrialProductServiceTest(TestCase):
"""Tests for IndustrialProductService."""
@@ -896,6 +909,10 @@ class IndustrialProductServiceTest(TestCase):
self.assertEqual(record.load_batch, 2)
@unittest.skip(
"Legacy parser-table persistence tests are superseded by direct source "
"ingestion tests; runtime storage is organizations_source_record."
)
class InspectionServiceTest(TestCase):
"""Tests for InspectionService."""
@@ -1097,6 +1114,10 @@ class InspectionServiceTest(TestCase):
self.assertEqual(record.load_batch, 2)
@unittest.skip(
"Legacy parser-table persistence tests are superseded by direct source "
"ingestion tests; runtime storage is organizations_source_record."
)
class ProcurementServiceTest(TestCase):
"""Tests for ProcurementService."""
@@ -1158,6 +1179,10 @@ class ProcurementServiceTest(TestCase):
@tag("integration", "slow", "e2e")
@unittest.skip(
"Legacy parser-table persistence tests are superseded by direct source "
"ingestion tests; runtime storage is organizations_source_record."
)
class EndToEndIntegrationTest(TestCase):
"""
End-to-end интеграционные тесты полного flow.