[Fix] Iuclid export produce only one root substance (#429)

Reviewed-on: enviPath/enviPy#429
Co-authored-by: Tobias O <tobias.olenyi@envipath.com>
Co-committed-by: Tobias O <tobias.olenyi@envipath.com>
This commit is contained in:
2026-07-23 06:37:02 +12:00
committed by jebus
parent ac8df05913
commit cdd51fc7aa
4 changed files with 59 additions and 12 deletions

View File

@ -70,8 +70,7 @@ class IUCLIDExportAPITest(TestCase):
names = zf.namelist()
self.assertIn("manifest.xml", names)
i6d_files = [n for n in names if n.endswith(".i6d")]
# 2 substances + 2 ref substances + 1 ESR = 5 i6d files
self.assertEqual(len(i6d_files), 5)
self.assertEqual(len(i6d_files), 4)
def test_anonymous_returns_401(self):
self.client.logout()