fix: create organizations from form uploads
All checks were successful
CI/CD Pipeline / Code Quality Checks (push) Successful in 1m36s
CI/CD Pipeline / Run Tests (push) Successful in 2m12s
CI/CD Pipeline / Build and Push Dev Images (push) Successful in 37s
CI/CD Pipeline / Deploy Dev via Compose (push) Successful in 24s

This commit is contained in:
2026-06-02 00:28:09 +02:00
parent 943abb16ce
commit d112d1715f
17 changed files with 372 additions and 14 deletions

View File

@@ -61,7 +61,7 @@ class FormF3ParserTest(TestCase):
self.assertIn("total_equipment", field_names)
def test_create_record_uses_existing_organization(self):
"""Report imports must attach rows only to preloaded Mostovik organizations."""
"""Report imports reuse existing organizations when available."""
parser = FormF3Parser(report_year=2026, report_quarter=1)
parser.load_batch = 503
organization = OrganizationFactory.create(inn="3234567890")