From 5c92b6897032a192cd5cdf3ed6332c990853609c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jordi=20Puiggen=C3=A9?= Date: Sun, 4 Aug 2024 22:53:35 +0200 Subject: [PATCH] Compatiblity with core#2584 (SampleType to DX) --- src/senaite/lis2a/tests/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/senaite/lis2a/tests/utils.py b/src/senaite/lis2a/tests/utils.py index 5b02fec..bdc61f0 100644 --- a/src/senaite/lis2a/tests/utils.py +++ b/src/senaite/lis2a/tests/utils.py @@ -45,7 +45,7 @@ def setup_baseline_data(portal): setup = portal.bika_setup client = _api.create(portal.clients, "Client", Name="Happy Hills", ClientID="HH") contact = _api.create(client, "Contact", Firstname="Rita", Lastname="Mohale") - sample_type = _api.create(setup.bika_sampletypes, "SampleType", title="Water", Prefix="W") + sample_type = _api.create(portal.setup.sampletypes, "SampleType", title="Water", Prefix="W") lab_contact = _api.create(setup.bika_labcontacts, "LabContact", Firstname="Lab", Lastname="Manager") department = _api.create(portal.setup.departments, "Department", title="Chemistry", Manager=lab_contact) category = _api.create(portal.setup.analysiscategories, "AnalysisCategory", title="Metals", Department=department)