feat: update finance exchange and source refresh jobs
All checks were successful
CI/CD Pipeline / Quality Gate (push) Successful in 31s
CI/CD Pipeline / Build and Push Images (push) Successful in 34s
CI/CD Pipeline / Internal Notify (push) Successful in 0s
CI/CD Pipeline / Deploy Dev via Compose (push) Successful in 33s

This commit is contained in:
2026-08-09 12:23:36 +02:00
parent 4da56f3823
commit a198f7e960
19 changed files with 266 additions and 52 deletions

View File

@@ -15,6 +15,7 @@ from apps.parsers.models import (
)
from django.core.management import call_command
from django.test import TestCase, override_settings
from django.utils import timezone
from organizations.models import (
Organization,
OrganizationSourceExtension,
@@ -88,6 +89,14 @@ class TestCompaniesCommandsTest(TestCase):
).count(),
20 * 4,
)
self.assertEqual(
set(
OrganizationSourceFinancialLine.objects.filter(
source_record__extension__organization__in=companies
).values_list("year", flat=True)
),
{timezone.localdate().year},
)
self.assertEqual(IndustrialCertificateRecord.objects.count(), 20)
self.assertEqual(IndustrialProductRecord.objects.count(), 20)
self.assertEqual(ManufacturerRecord.objects.count(), 20)