fix: copy organization dependency to exchange target
This commit is contained in:
@@ -5,9 +5,9 @@ from contextlib import suppress
|
||||
from apps.exchange.models import ExchangeConnection
|
||||
from apps.exchange.services import ExchangeConnectionService
|
||||
from apps.parsers.models import IndustrialCertificateRecord, ParserLoadLog
|
||||
from apps.registers.models import Organization
|
||||
from django.db import connections
|
||||
from django.test import TestCase
|
||||
from organizations.models import Organization
|
||||
|
||||
|
||||
class ExchangeConnectionServiceDependenciesTest(TestCase):
|
||||
@@ -20,7 +20,7 @@ class ExchangeConnectionServiceDependenciesTest(TestCase):
|
||||
|
||||
self.assertEqual(models_to_copy, [ParserLoadLog])
|
||||
|
||||
def test_extend_models_adds_registers_organization_first(self):
|
||||
def test_extend_models_adds_fk_target_organization_first(self):
|
||||
models_to_copy = ExchangeConnectionService._extend_models_with_dependencies(
|
||||
[IndustrialCertificateRecord]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user