feat: complete published registry contracts and gated SRO ingestion
All checks were successful
Mostovik Backend CI/CD / Tests and lint (push) Successful in 3m55s
Mostovik Backend CI/CD / Build linux/amd64 release images (push) Successful in 3m43s
Mostovik Backend CI/CD / Deploy and verify internal main (push) Has been skipped
Mostovik Backend CI/CD / Deploy customer main (push) Has been skipped
Mostovik Backend CI/CD / Deploy dev (push) Successful in 1m45s

This commit is contained in:
Aleksandr Meshchryakov
2026-09-14 17:01:02 +02:00
parent 49cbfd265c
commit 18971d33ec
76 changed files with 33156 additions and 311 deletions

View File

@@ -303,7 +303,7 @@ class RegistrySnapshotTest(TestCase):
ParserLoadLog.objects.get().status, ParserLoadLog.Status.FAILED
)
def test_opk_card_list_dashboard_counts_share_scope_while_export_keeps_own(self):
def test_card_list_dashboard_and_export_count_all_published_organizations(self):
Organization.objects.create(
name="Справочная организация",
inn="5678901234",
@@ -329,9 +329,9 @@ class RegistrySnapshotTest(TestCase):
(card.status_code, records.status_code, dashboard.status_code),
(200, 200, 200),
)
self.assertEqual(card.data["data"]["records_count"], 2)
self.assertEqual(records.data["meta"]["pagination"]["total_count"], 2)
self.assertEqual(dashboard.data["data"]["source_counts"][SME_SOURCE], 2)
self.assertEqual(card.data["data"]["records_count"], 3)
self.assertEqual(records.data["meta"]["pagination"]["total_count"], 3)
self.assertEqual(dashboard.data["data"]["source_counts"][SME_SOURCE], 3)
self.assertEqual(
_source_group_queryset("government_support", export_year=2026).count(), 3
)