From d3b8b2f1acbedf8d75975e50197b965464c904d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jordi=20Puiggen=C3=A9?= Date: Sun, 4 Aug 2024 23:07:53 +0200 Subject: [PATCH] Compatibility with core#2584 (SampleType to DX) --- src/senaite/storage/tests/doctests/PrimarySample.rst | 2 +- src/senaite/storage/tests/doctests/StorageWorkflow.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/senaite/storage/tests/doctests/PrimarySample.rst b/src/senaite/storage/tests/doctests/PrimarySample.rst index 48337d5..ab94936 100644 --- a/src/senaite/storage/tests/doctests/PrimarySample.rst +++ b/src/senaite/storage/tests/doctests/PrimarySample.rst @@ -59,7 +59,7 @@ Create some baseline objects for the test: >>> client = api.create(portal.clients, "Client", Name="Happy Hills", ClientID="HH", MemberDiscountApplies=True) >>> contact = api.create(client, "Contact", Firstname="Rita", Lastname="Mohale") - >>> sampletype = api.create(setup.bika_sampletypes, "SampleType", title="Water", Prefix="W") + >>> sampletype = api.create(setup.sampletypes, "SampleType", title="Water", Prefix="W") >>> labcontact = api.create(setup.bika_labcontacts, "LabContact", Firstname="Lab", Lastname="Manager") >>> department = api.create(portal.setup.departments, "Department", title="Chemistry", Manager=labcontact) >>> category = api.create(portal.setup.analysiscategories, "AnalysisCategory", title="Metals", Department=department) diff --git a/src/senaite/storage/tests/doctests/StorageWorkflow.rst b/src/senaite/storage/tests/doctests/StorageWorkflow.rst index 2dc9d38..550e99a 100644 --- a/src/senaite/storage/tests/doctests/StorageWorkflow.rst +++ b/src/senaite/storage/tests/doctests/StorageWorkflow.rst @@ -61,7 +61,7 @@ We need to create some basic objects for the test: >>> setRoles(portal, TEST_USER_ID, ['LabManager',]) >>> client = api.create(portal.clients, "Client", Name="Happy Hills", ClientID="HH", MemberDiscountApplies=True) >>> contact = api.create(client, "Contact", Firstname="Rita", Lastname="Mohale") - >>> sampletype = api.create(setup.bika_sampletypes, "SampleType", title="Water", Prefix="W") + >>> sampletype = api.create(portal.setup.sampletypes, "SampleType", title="Water", Prefix="W") >>> labcontact = api.create(setup.bika_labcontacts, "LabContact", Firstname="Lab", Lastname="Manager") >>> department = api.create(portal.setup.departments, "Department", title="Chemistry", Manager=labcontact) >>> category = api.create(portal.setup.analysiscategories, "AnalysisCategory", title="Metals", Department=department)