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
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user