fix: keep test finance exchange identities stable
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user