fix: keep test finance exchange identities stable
All checks were successful
CI/CD Pipeline / Quality Gate (push) Successful in 27s
CI/CD Pipeline / Build and Push Images (push) Successful in 20s
CI/CD Pipeline / Internal Notify (push) Successful in 0s
CI/CD Pipeline / Deploy Dev via Compose (push) Successful in 31s

This commit is contained in:
2026-08-09 13:29:48 +02:00
parent 5618155503
commit 661e857f53
2 changed files with 20 additions and 2 deletions

View File

@@ -293,12 +293,12 @@ class TestCompanyDatasetService:
if source == ParserLoadLog.Source.FNS_REPORTS:
legacy_record, _ = FinancialReport.objects.update_or_create(
external_id=f"test-company-{index:02d}",
file_hash=payload["file_hash"],
defaults={
**common,
"external_id": external_id,
"ogrn": organization.ogrn,
"file_name": payload["file_name"],
"file_hash": payload["file_hash"],
"status": FinancialReport.Status.SUCCESS,
"source": FinancialReport.SourceType.API,
},