feat: add Fedresurs profiles and integrated structures sources
Some checks failed
Mostovik Backend CI/CD / Tests and lint (push) Failing after 6m35s
Mostovik Backend CI/CD / Build linux/amd64 release images (push) Has been skipped
Mostovik Backend CI/CD / Deploy dev (push) Has been skipped
Mostovik Backend CI/CD / Deploy and verify internal main (push) Has been skipped

This commit is contained in:
Aleksandr Meshchryakov
2026-09-24 14:14:01 +02:00
parent 4c869b856c
commit 85a3c0650e
42 changed files with 3166 additions and 49 deletions

View File

@@ -66,11 +66,20 @@ class TestCompaniesCommandsTest(TestCase):
10,
)
expected_groups = {choice.value for choice in SourceGroup}
expected_groups = {
choice.value
for choice in SourceGroup
if choice is not SourceGroup.INTEGRATED_STRUCTURE_DOCUMENTS
}
expected_sources = {
choice.value
for choice in ParserLoadLog.Source
if choice is not ParserLoadLog.Source.ROPK_SANCTIONS
if choice
not in {
ParserLoadLog.Source.ROPK_SANCTIONS,
ParserLoadLog.Source.INTEGRATED_STRUCTURE_DOCUMENTS,
ParserLoadLog.Source.FEDRESURS_COMPANY_PROFILE,
}
}
for company in companies:
self.assertEqual(
@@ -264,7 +273,7 @@ class TestCompaniesCommandsTest(TestCase):
)
self.assertEqual(
OrganizationSourceRecord.objects.count(),
20 * (len(ParserLoadLog.Source) - 1),
20 * (len(ParserLoadLog.Source) - 3),
)
def test_create_replaces_stale_source_record_for_same_legacy_row(self):