fix: align ci with organization redesign
Some checks failed
CI/CD Pipeline / Quality Gate (push) Failing after 18s
CI/CD Pipeline / Build and Push Images (push) Has been skipped
CI/CD Pipeline / Internal Notify (push) Successful in 0s
CI/CD Pipeline / Deploy Dev via Compose (push) Has been skipped

This commit is contained in:
2026-06-07 16:43:30 +02:00
parent 802257a757
commit 71eac688f2
10 changed files with 82 additions and 754 deletions

View File

@@ -95,14 +95,12 @@ class StateCorpExchangeServiceTest(TestCase):
expiry_date="2027-01-10",
expiry_date_normalized="2027-01-10",
certificate_file_url="https://minpromtorg.gov.ru/cert/001",
registry_organization=organization,
)
ManufacturerRecordFactory.create(
inn=str(organization.mn_inn),
ogrn=str(organization.mn_ogrn),
full_legal_name=organization.pn_name,
address="г. Москва, ул. Тверская, д. 1",
registry_organization=organization,
)
IndustrialProductRecordFactory.create(
inn=str(organization.mn_inn),
@@ -111,7 +109,6 @@ class StateCorpExchangeServiceTest(TestCase):
registry_number="prod-001",
product_name="Система связи М-1",
product_model="Связь",
registry_organization=organization,
)
InspectionRecordFactory.create(
inn=str(organization.mn_inn),
@@ -123,7 +120,6 @@ class StateCorpExchangeServiceTest(TestCase):
start_date="2026-03-10",
start_date_normalized="2026-03-10",
status="active",
registry_organization=organization,
)
ProcurementRecordFactory.create(
customer_inn=str(organization.mn_inn),
@@ -138,12 +134,10 @@ class StateCorpExchangeServiceTest(TestCase):
end_date="2026-11-30",
end_date_normalized="2026-11-30",
max_price_amount="4500000.75",
registry_organization=organization,
)
financial_report = FinancialReport.objects.create(
external_id="fin-001",
ogrn=str(organization.mn_ogrn),
registry_organization=organization,
file_name="fin_001_1027700132195.xlsx",
file_hash="f" * 64,
load_batch=1,
@@ -174,7 +168,6 @@ class StateCorpExchangeServiceTest(TestCase):
"registry_number": "purchase-generic-001",
"Окончание подачи заявок": "20.02.2026",
},
registry_organization=organization,
)
GenericParserRecord.objects.create(
source=ParserLoadLog.Source.ARBITRATION,
@@ -190,7 +183,6 @@ class StateCorpExchangeServiceTest(TestCase):
"court_name": "АС города Москвы",
"target": {"role": "ответчик"},
},
registry_organization=organization,
)
GenericParserRecord.objects.create(
source=ParserLoadLog.Source.FEDRESURS_BANKRUPTCY,
@@ -207,7 +199,6 @@ class StateCorpExchangeServiceTest(TestCase):
"date": "2026-03-26",
"case_number": "А40-555/2026",
},
registry_organization=organization,
)
GenericParserRecord.objects.create(
source=ParserLoadLog.Source.FAS_GOZ,
@@ -224,7 +215,6 @@ class StateCorpExchangeServiceTest(TestCase):
"Полное наименование лица": organization.pn_name,
"Дата вступления постановления": "2026-02-20",
},
registry_organization=organization,
)
GenericParserRecord.objects.create(
source=ParserLoadLog.Source.FSTEC,
@@ -241,7 +231,6 @@ class StateCorpExchangeServiceTest(TestCase):
"issued_at": "2026-01-10",
"expires_at": "2027-01-10",
},
registry_organization=organization,
)
GenericParserRecord.objects.create(
source=ParserLoadLog.Source.TRUDVSEM,
@@ -255,7 +244,6 @@ class StateCorpExchangeServiceTest(TestCase):
status="open",
url="https://trudvsem.ru/vacancy/001",
payload={"vacancy_source": "trudvsem"},
registry_organization=organization,
)
package = StateCorpExchangeService.build_package(actual_date="2026-03-15")
@@ -372,12 +360,10 @@ class StateCorpExchangeServiceTest(TestCase):
IndustrialProductRecordFactory.create(
inn=str(target.mn_inn),
registry_number="target-product",
registry_organization=target,
)
IndustrialProductRecordFactory.create(
inn=str(non_target.mn_inn),
registry_number="non-target-product",
registry_organization=non_target,
)
GenericParserRecord.objects.create(
source=ParserLoadLog.Source.TRUDVSEM,
@@ -386,7 +372,6 @@ class StateCorpExchangeServiceTest(TestCase):
inn=str(target.mn_inn),
title="Целевая вакансия",
record_date="2026-03-10",
registry_organization=target,
)
GenericParserRecord.objects.create(
source=ParserLoadLog.Source.TRUDVSEM,
@@ -395,7 +380,6 @@ class StateCorpExchangeServiceTest(TestCase):
inn=str(non_target.mn_inn),
title="Лишняя вакансия",
record_date="2026-03-10",
registry_organization=non_target,
)
package = StateCorpExchangeService.build_package(actual_date="2026-03-15")