fix: collect sources for state corp corporations
All checks were successful
CI/CD Pipeline / Quality Gate (push) Successful in 32s
CI/CD Pipeline / Build and Push Images (push) Successful in 1s
CI/CD Pipeline / Internal Notify (push) Successful in 1s
CI/CD Pipeline / Deploy Dev via Compose (push) Successful in 1s
CI/CD Pipeline / Quality Gate (pull_request) Successful in 30s
CI/CD Pipeline / Build and Push Images (pull_request) Successful in 1s
CI/CD Pipeline / Internal Notify (pull_request) Successful in 1s
CI/CD Pipeline / Deploy Dev via Compose (pull_request) Successful in 1s
All checks were successful
CI/CD Pipeline / Quality Gate (push) Successful in 32s
CI/CD Pipeline / Build and Push Images (push) Successful in 1s
CI/CD Pipeline / Internal Notify (push) Successful in 1s
CI/CD Pipeline / Deploy Dev via Compose (push) Successful in 1s
CI/CD Pipeline / Quality Gate (pull_request) Successful in 30s
CI/CD Pipeline / Build and Push Images (pull_request) Successful in 1s
CI/CD Pipeline / Internal Notify (pull_request) Successful in 1s
CI/CD Pipeline / Deploy Dev via Compose (pull_request) Successful in 1s
This commit is contained in:
@@ -89,4 +89,29 @@ class CheckoCollectionClaimTest(TestCase):
|
||||
checko_source=CheckoCollectionAttempt.Source.INSPECTIONS,
|
||||
)
|
||||
|
||||
self.assertEqual([target.organization_id for target in targets], [str(second.id)])
|
||||
self.assertEqual(
|
||||
[target.organization_id for target in targets], [str(second.id)]
|
||||
)
|
||||
|
||||
def test_lookup_targets_include_corporation_members_outside_opk(self):
|
||||
self.organization.gk_name = 'Госкорпорация "Росатом"'
|
||||
self.organization.save(update_fields=["gk_name"])
|
||||
outside_scope = create_directory_organization(
|
||||
pn_name='ООО "Вне контура обмена"',
|
||||
mn_ogrn=1027700000399,
|
||||
mn_inn=7701000399,
|
||||
in_kpp=770101001,
|
||||
mn_okpo="11223344",
|
||||
)
|
||||
|
||||
targets = parser_tasks._active_registry_lookup_targets(
|
||||
organization_ids=[
|
||||
str(self.organization.id),
|
||||
str(outside_scope.id),
|
||||
],
|
||||
)
|
||||
|
||||
self.assertEqual(
|
||||
[target.organization_id for target in targets],
|
||||
[str(self.organization.id)],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user