feat(registry): add new endpoints for registers, exchange, and backups; update routing and configurations
Some checks failed
CI/CD Pipeline / Code Quality Checks (push) Failing after 3m10s
CI/CD Pipeline / Run Tests (push) Successful in 3m35s
CI/CD Pipeline / Telegram Notify Success (push) Has been skipped
CI/CD Pipeline / Code Quality Checks (pull_request) Failing after 2m26s
CI/CD Pipeline / Run Tests (pull_request) Successful in 2m46s
CI/CD Pipeline / Telegram Notify Success (pull_request) Has been skipped

This commit is contained in:
2026-03-04 15:36:57 +01:00
parent 052389d921
commit a91ed1f1ae
90 changed files with 5488 additions and 622 deletions

View File

@@ -0,0 +1,25 @@
"""Tests for exchange services."""
from apps.exchange.services import ExchangeConnectionService
from apps.parsers.models import IndustrialCertificateRecord, ParserLoadLog
from apps.registers.models import Organization
from django.test import TestCase
class ExchangeConnectionServiceDependenciesTest(TestCase):
"""Tests for dependency expansion in copy operation."""
def test_extend_models_without_registry_links(self):
models_to_copy = ExchangeConnectionService._extend_models_with_dependencies(
[ParserLoadLog]
)
self.assertEqual(models_to_copy, [ParserLoadLog])
def test_extend_models_adds_registers_organization_first(self):
models_to_copy = ExchangeConnectionService._extend_models_with_dependencies(
[IndustrialCertificateRecord]
)
self.assertEqual(models_to_copy[0], Organization)
self.assertEqual(models_to_copy[1], IndustrialCertificateRecord)